tony2001                Wed Apr  2 14:56:03 2008 UTC

  Modified files:              
    /php-src/ext/oci8   oci8_statement.c oci8_interface.c 
  Log:
  decrement parent's refcount only when destroying the child, not when 
decrementing child's refcount
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/oci8_statement.c?r1=1.56&r2=1.57&diff_format=u
Index: php-src/ext/oci8/oci8_statement.c
diff -u php-src/ext/oci8/oci8_statement.c:1.56 
php-src/ext/oci8/oci8_statement.c:1.57
--- php-src/ext/oci8/oci8_statement.c:1.56      Tue Mar 25 02:25:02 2008
+++ php-src/ext/oci8/oci8_statement.c   Wed Apr  2 14:56:03 2008
@@ -25,7 +25,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: oci8_statement.c,v 1.56 2008/03/25 02:25:02 sixd Exp $ */
+/* $Id: oci8_statement.c,v 1.57 2008/04/02 14:56:03 tony2001 Exp $ */
 
 
 #ifdef HAVE_CONFIG_H
@@ -780,7 +780,11 @@
                zend_hash_destroy(statement->defines);
                efree(statement->defines);
        }
-       
+
+       if (statement->parent_stmtid) {
+               zend_list_delete(statement->parent_stmtid);
+       }
+
        zend_list_delete(statement->connection->rsrc_id);
        efree(statement);
        
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/oci8_interface.c?r1=1.37&r2=1.38&diff_format=u
Index: php-src/ext/oci8/oci8_interface.c
diff -u php-src/ext/oci8/oci8_interface.c:1.37 
php-src/ext/oci8/oci8_interface.c:1.38
--- php-src/ext/oci8/oci8_interface.c:1.37      Tue Mar 25 02:25:02 2008
+++ php-src/ext/oci8/oci8_interface.c   Wed Apr  2 14:56:03 2008
@@ -25,7 +25,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: oci8_interface.c,v 1.37 2008/03/25 02:25:02 sixd Exp $ */
+/* $Id: oci8_interface.c,v 1.38 2008/04/02 14:56:03 tony2001 Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1550,10 +1550,6 @@
        PHP_OCI_ZVAL_TO_STATEMENT(z_statement, statement);
 
        zend_list_delete(statement->id);
-       if (statement->parent_stmtid) {
-               zend_list_delete(statement->parent_stmtid);
-       }       
-
        RETURN_TRUE;
 }
 /* }}} */



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

Reply via email to