diff options
author | Antony Dovgal <tony2001@php.net> | 2006-04-12 13:37:51 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-04-12 13:37:51 +0000 |
commit | bac1fda3366198846d36cc8eae5b0ab1058bc45d (patch) | |
tree | 5c134e3fa34f7288ddcd83513b6289d5e7708a99 | |
parent | d23c1d763be3bcc932f501634828f7a2f41beb60 (diff) | |
download | php-git-bac1fda3366198846d36cc8eae5b0ab1058bc45d.tar.gz |
fix #37055 (incorrect reference counting for persistent OCI8 connections)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ext/oci8/oci8.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Apr 2006, PHP 5.1.3 +- Fixed bug #37055 (incorrect reference counting for persistent OCI8 + connections). (Tony) - Fixed bug #37053 (html_errors with internal classes produces wrong links). (Tony) - Fixed bug #37046 (foreach breaks static scope). (Dmitry) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index cfa5a82197..868c40c482 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1056,7 +1056,7 @@ php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char /* 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; } } |