1
0
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:
Antony Dovgal
2004-07-12 07:40:05 +00:00
parent 83e4bb727b
commit 08486a0ea3

View File

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