mirror of
https://github.com/php/php-src.git
synced 2026-04-08 00:22:52 +02:00
fix #28978 (multiple OCIBindByName on the same placeholder eats memory)
This commit is contained in:
@@ -3698,8 +3698,8 @@ break;
|
||||
}
|
||||
|
||||
memset((void*)&bind,0,sizeof(oci_bind));
|
||||
zend_hash_next_index_insert(statement->binds,&bind,sizeof(oci_bind),(void **)&bindp);
|
||||
|
||||
zend_hash_update(statement->binds, Z_STRVAL_PP(name), Z_STRLEN_PP(name) + 1, &bind, sizeof(oci_bind), (void **)&bindp);
|
||||
|
||||
bindp->descr = mydescr;
|
||||
bindp->pStmt = mystmt;
|
||||
bindp->zval = *var;
|
||||
|
||||
Reference in New Issue
Block a user