]> granicus.if.org Git - php/commitdiff
silence compile warning in non-ZTS mode
authorAntony Dovgal <tony2001@php.net>
Tue, 10 Jan 2006 08:32:49 +0000 (08:32 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 10 Jan 2006 08:32:49 +0000 (08:32 +0000)
ext/oci8/oci8.c

index 3a7d8acf60769b1ead6073fce3062c3bca355079..b8257b6fda7b7c860077b9e4e0d72d1e2b66dc41 100644 (file)
@@ -88,7 +88,9 @@ static void php_oci_descriptor_list_dtor (zend_rsrc_list_entry * TSRMLS_DC);
 static void php_oci_collection_list_dtor (zend_rsrc_list_entry * TSRMLS_DC);
 
 static int php_oci_persistent_helper(zend_rsrc_list_entry *le TSRMLS_DC);
+#ifdef ZTS
 static int php_oci_regular_helper(zend_rsrc_list_entry *le TSRMLS_DC);
+#endif
 static int php_oci_connection_ping(php_oci_connection * TSRMLS_DC);
 static int php_oci_connection_status(php_oci_connection * TSRMLS_DC);
 static int php_oci_connection_close(php_oci_connection * TSRMLS_DC);
@@ -1728,6 +1730,7 @@ static int php_oci_persistent_helper(zend_rsrc_list_entry *le TSRMLS_DC)
        return 0;
 } /* }}} */
 
+#ifdef ZTS
 /* {{{ php_oci_regular_helper() 
  Helper function to close non-persistent connections at the end of request in ZTS mode */
 static int php_oci_regular_helper(zend_rsrc_list_entry *le TSRMLS_DC)
@@ -1742,5 +1745,6 @@ static int php_oci_regular_helper(zend_rsrc_list_entry *le TSRMLS_DC)
        }
        return 0;
 } /* }}} */
+#endif
 
 #endif /* HAVE_OCI8 */