summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2005-11-18 20:49:01 +0000
committerFrank M. Kromann <fmk@php.net>2005-11-18 20:49:01 +0000
commitb77ccca751b48dc2afeccdb3eca5d40db8ee0bae (patch)
treebabe71486d884bf9556eb091c2a8626e0ff782f8
parent4701b2f73b597566af5d421b0a8e4ddc6d1c0dfd (diff)
downloadphp-git-b77ccca751b48dc2afeccdb3eca5d40db8ee0bae.tar.gz
MFH Fix #33963. mssql_bind fails on input parameters
-rw-r--r--NEWS1
-rw-r--r--ext/mssql/php_mssql.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index e1a0b11487..c39c6e87de 100644
--- a/NEWS
+++ b/NEWS
@@ -60,6 +60,7 @@ PHP NEWS
- Fixed bug #29983 (PHP does not explicitly set mime type & charset). (Ilia)
- Fixed bug #33153 (crash in mssql_next result). (Frank)
- Fixed bug #32009 (crash when mssql_bind() is called more than once). (Frank)
+- Fixed bug #33963 (mssql_bind() fails on input parameters). (Frank)
05 Sep 2005, PHP 5.0.5
- Upgraded PCRE library to version 5.0. (Andrei)
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 853a7868dd..f20cce5709 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -2010,7 +2010,9 @@ PHP_FUNCTION(mssql_bind)
type=Z_LVAL_PP(yytype);
is_output=Z_LVAL_PP(yyis_output);
is_null=Z_LVAL_PP(yyis_null);
- maxlen=Z_LVAL_PP(yymaxlen);
+ if (is_output) {
+ maxlen=Z_LVAL_PP(yymaxlen);
+ }
}
break;