From: Antony Dovgal Date: Wed, 12 Apr 2006 13:38:05 +0000 (+0000) Subject: MF51: fix #37055 (incorrect reference counting for persistent OCI8 connections) X-Git-Tag: RELEASE_1_3~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33a2dc749500f7afbcd1e4c2e75feef8fd8a29a6;p=php MF51: fix #37055 (incorrect reference counting for persistent OCI8 connections) --- 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; } }