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;