summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2004-07-12 07:40:05 +0000
committerAntony Dovgal <tony2001@php.net>2004-07-12 07:40:05 +0000
commit08486a0ea3e613d06ca305781ac7050fd0f791d7 (patch)
tree7a5be5f9ff67acabecd1dae3b73498691c838ed3
parent83e4bb727b1d2ac23f38173ed254109c51121972 (diff)
downloadphp-git-08486a0ea3e613d06ca305781ac7050fd0f791d7.tar.gz
fix #28978 (multiple OCIBindByName on the same placeholder eats memory)
-rw-r--r--ext/oci8/oci8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index bf49831306..04f697950e 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -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;