From a47aa0e936de1ba18b30bfd49ab0ea8e411cf27c Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 12 Jul 2004 07:42:41 +0000 Subject: [PATCH] MFH: fix #28978 (multiple OCIBindByName on the same placeholder eats memory) --- ext/oci8/oci8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 0717ec28da..bded0a9567 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2982,7 +2982,7 @@ 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; -- 2.50.1