From 87e899e4a4e7b3c880270c17fb4c4dada3773135 Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Fri, 18 Nov 2005 20:48:22 +0000 Subject: 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 25d49582f5..5635e65130 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -2041,7 +2041,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