]> granicus.if.org Git - php/commitdiff
MFH: fix #28978 (multiple OCIBindByName on the same placeholder eats memory)
authorAntony Dovgal <tony2001@php.net>
Mon, 12 Jul 2004 07:42:41 +0000 (07:42 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 12 Jul 2004 07:42:41 +0000 (07:42 +0000)
ext/oci8/oci8.c

index 0717ec28da58e5d0493fdff95c6ad6554f19edf6..bded0a9567249d283556778b78f193d1e52b82f2 100644 (file)
@@ -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;