From: Antony Dovgal Date: Wed, 12 Apr 2006 17:59:57 +0000 (+0000) Subject: MF51: correct fix for bug #37055 X-Git-Tag: RELEASE_1_3~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a892880c1cbb2a6c99930dab0122b861a8f373e5;p=php MF51: correct fix for bug #37055 --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 868c40c482..87e5f3a775 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1056,7 +1056,9 @@ 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); - zend_list_addref(connection->rsrc_id); + if (zend_list_addref(connection->rsrc_id) == FAILURE) { + connection->rsrc_id = zend_list_insert(connection, le_pconnection); + } return connection; } }