tony2001                Wed Apr 12 17:59:57 2006 UTC

  Modified files:              
    /php-src/ext/oci8   oci8.c 
  Log:
  MF51: correct fix for bug #37055
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/oci8/oci8.c?r1=1.295&r2=1.296&diff_format=u
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.295 php-src/ext/oci8/oci8.c:1.296
--- php-src/ext/oci8/oci8.c:1.295       Wed Apr 12 13:38:05 2006
+++ php-src/ext/oci8/oci8.c     Wed Apr 12 17:59:57 2006
@@ -26,7 +26,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: oci8.c,v 1.295 2006/04/12 13:38:05 tony2001 Exp $ */
+/* $Id: oci8.c,v 1.296 2006/04/12 17:59:57 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.295 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.296 $");
 
        sprintf(buf, "%ld", OCI_G(num_persistent));
        php_info_print_table_row(2, "Active Persistent Connections", buf);
@@ -1056,7 +1056,9 @@
                                                        /* 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;
                                                }
                                        }

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

Reply via email to