From 8c030a1d9f851f9ab09424095f69b65bc648700e Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Fri, 18 Nov 2005 20:49:16 +0000 Subject: MFH Fix #33963. mssql_bind fails on input parameters --- ext/mssql/php_mssql.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/mssql/php_mssql.c') 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; -- cgit v1.2.1