aboutsummaryrefslogtreecommitdiffstats
path: root/databases/php4-mssql
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-12-23 17:53:11 +0800
committerale <ale@FreeBSD.org>2004-12-23 17:53:11 +0800
commit36f86da46d95fe21b10c9691d76388b3b6b43d19 (patch)
tree63c46714dd6dfe3985a0f9da8e477a4294b83443 /databases/php4-mssql
parent4c557ddeffc3e2c458ff2e725555bf74d6d7a5c1 (diff)
downloadfreebsd-ports-graphics-36f86da46d95fe21b10c9691d76388b3b6b43d19.tar.gz
freebsd-ports-graphics-36f86da46d95fe21b10c9691d76388b3b6b43d19.tar.zst
freebsd-ports-graphics-36f86da46d95fe21b10c9691d76388b3b6b43d19.zip
Fix return value for insert/update queries.
Submitted by: "Liddelow, Tim" <liddelow@acer.edu.au> Obtained from: PHP CVS
Diffstat (limited to 'databases/php4-mssql')
-rw-r--r--databases/php4-mssql/Makefile1
-rw-r--r--databases/php4-mssql/files/patch-php_mssql.c15
2 files changed, 16 insertions, 0 deletions
diff --git a/databases/php4-mssql/Makefile b/databases/php4-mssql/Makefile
index dd10cd05de9..6f86f457a8d 100644
--- a/databases/php4-mssql/Makefile
+++ b/databases/php4-mssql/Makefile
@@ -5,6 +5,7 @@
# $FreeBSD$
#
+PORTREVISION= 1
CATEGORIES= databases
MASTERDIR= ${.CURDIR}/../../lang/php4
diff --git a/databases/php4-mssql/files/patch-php_mssql.c b/databases/php4-mssql/files/patch-php_mssql.c
new file mode 100644
index 00000000000..3f8a7450bdb
--- /dev/null
+++ b/databases/php4-mssql/files/patch-php_mssql.c
@@ -0,0 +1,15 @@
+--- php_mssql.c 2004/12/14 17:22:10 1.86.2.41
++++ php_mssql.c 2004/12/16 21:48:17 1.86.2.42
+@@ -1206,10 +1206,8 @@ PHP_FUNCTION(mssql_query)
+ while ((num_fields = dbnumcols(mssql_ptr->link)) <= 0 && retvalue == SUCCEED) {
+ retvalue = dbresults(mssql_ptr->link);
+ }
+- if (retvalue != SUCCEED) {
+- RETURN_FALSE;
+- }
+- if ((num_fields = dbnumcols(mssql_ptr->link)) <= 0) {
++
++ if (num_fields <= 0) {
+ RETURN_TRUE;
+ }
+