]> granicus.if.org Git - php/commitdiff
OCIBreak() is not supported on Windows
authorAntony Dovgal <tony2001@php.net>
Tue, 15 Aug 2006 12:19:39 +0000 (12:19 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 15 Aug 2006 12:19:39 +0000 (12:19 +0000)
ext/oci8/oci8.c

index af9492f2e7b55acde01992b7f68229af2fc79aec..6c75292484cb434d2acee81bba14fa20f368ed42 100644 (file)
@@ -1770,14 +1770,7 @@ static int php_oci_persistent_helper(zend_rsrc_list_entry *le TSRMLS_DC)
 
                if (connection->used_this_request) {
                        if ((PG(connection_status) & PHP_CONNECTION_TIMEOUT)) {
-                               /* call OCIBreak() on timeout to avoid appearance of deadlocked persistent connections */
-                               connection->errcode = PHP_OCI_CALL(OCIBreak, (connection->svc, connection->err));
-                               if (connection->errcode != OCI_SUCCESS) {
-                                       php_oci_error(connection->err, connection->errcode TSRMLS_CC);
-                                       PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
-                                       /* OCIBreak() failed. delete the connection */
-                                       return 1;
-                               }
+                               return 1;
                        }
 
                        if (connection->descriptors) {