summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2005-11-18 20:49:16 +0000
committerFrank M. Kromann <fmk@php.net>2005-11-18 20:49:16 +0000
commit8c030a1d9f851f9ab09424095f69b65bc648700e (patch)
treecaebd9dd40c8c8175541c513578c130c404833ba /ext/mssql/php_mssql.c
parent3936f188c810000fc22bc5c1f1fa33b36ed2ddfd (diff)
downloadphp-git-8c030a1d9f851f9ab09424095f69b65bc648700e.tar.gz
MFH Fix #33963. mssql_bind fails on input parameters
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r--ext/mssql/php_mssql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 397fedc04f..63552fb9aa 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -2057,7 +2057,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;