Fix for bug 23402. Crash when mssql?bind was used incorrectly

This commit is contained in:
Frank M. Kromann 2003-05-21 00:08:10 +00:00
parent 34087ad2b5
commit 03c56a5a1f

View File

@ -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);