mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Fix for bug 23402. Crash when mssql?bind was used incorrectly
This commit is contained in:
parent
34087ad2b5
commit
03c56a5a1f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user