summaryrefslogtreecommitdiff
path: root/ext/mssql
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mssql')
-rw-r--r--ext/mssql/php_mssql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 4e0d2a667e..1ee1684c29 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -2007,6 +2007,7 @@ PHP_FUNCTION(mssql_bind)
memset((void*)&bind,0,sizeof(mssql_bind));
zend_hash_add(statement->binds,Z_STRVAL_PP(param_name),Z_STRLEN_PP(param_name),&bind,sizeof(mssql_bind),(void **)&bindp);
+ if( NULL == bindp ) RETURN_FALSE;
bindp->zval=*var;
zval_add_ref(var);