tony2001 Wed Apr 12 13:38:05 2006 UTC
Modified files:
/php-src/ext/oci8 oci8.c
Log:
MF51: fix #37055 (incorrect reference counting for persistent OCI8
connections)
http://cvs.php.net/viewcvs.cgi/php-src/ext/oci8/oci8.c?r1=1.294&r2=1.295&diff_format=u
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.294 php-src/ext/oci8/oci8.c:1.295
--- php-src/ext/oci8/oci8.c:1.294 Wed Mar 22 09:46:13 2006
+++ php-src/ext/oci8/oci8.c Wed Apr 12 13:38:05 2006
@@ -26,7 +26,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.294 2006/03/22 09:46:13 tony2001 Exp $ */
+/* $Id: oci8.c,v 1.295 2006/04/12 13:38:05 tony2001 Exp $ */
/* TODO
*
* file://localhost/www/docs/oci10/ociaahan.htm#423823 - implement lob_empty()
with OCI_ATTR_LOBEMPTY
@@ -645,7 +645,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "OCI8 Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.294 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.295 $");
sprintf(buf, "%ld", OCI_G(num_persistent));
php_info_print_table_row(2, "Active Persistent Connections", buf);
@@ -1056,7 +1056,7 @@
/* okay, the connection
is open and the server is still alive */
connection->used_this_request = 1;
smart_str_free_ex(&hashed_details, 0);
- connection->rsrc_id =
zend_list_insert(connection, le_pconnection);
+
zend_list_addref(connection->rsrc_id);
return connection;
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php