tony2001                Mon Jul 12 03:42:41 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/oci8   oci8.c 
  Log:
  MFH: fix #28978 (multiple OCIBindByName on the same placeholder eats memory)
  
  
http://cvs.php.net/diff.php/php-src/ext/oci8/oci8.c?r1=1.183.2.12&r2=1.183.2.13&ty=u
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.183.2.12 php-src/ext/oci8/oci8.c:1.183.2.13
--- php-src/ext/oci8/oci8.c:1.183.2.12  Thu Feb  5 03:30:17 2004
+++ php-src/ext/oci8/oci8.c     Mon Jul 12 03:42:41 2004
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: oci8.c,v 1.183.2.12 2004/02/05 08:30:17 tony2001 Exp $ */
+/* $Id: oci8.c,v 1.183.2.13 2004/07/12 07:42:41 tony2001 Exp $ */
 
 /* TODO list:
  *
@@ -641,7 +641,7 @@
 
        php_info_print_table_start();
        php_info_print_table_row(2, "OCI8 Support", "enabled");
-       php_info_print_table_row(2, "Revision", "$Revision: 1.183.2.12 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.183.2.13 $");
 #ifndef PHP_WIN32
        php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION );
        php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR );
@@ -2982,7 +2982,7 @@
        }
 
        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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to