]> granicus.if.org Git - php/commitdiff
compile out both parts of the code that are currently unused - fixes a compilation...
authorAndrey Hristov <andrey@php.net>
Tue, 2 Aug 2011 14:02:21 +0000 (14:02 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 2 Aug 2011 14:02:21 +0000 (14:02 +0000)
ext/mysqli/mysqli.c

index a0815ea8bd128a37e5a1bb91b4ecabf173f62a96..fc35c8302e9435ed6fca916b465f13259b1a6303 100644 (file)
@@ -867,7 +867,7 @@ PHP_RINIT_FUNCTION(mysqli)
 }
 /* }}} */
 
-#ifdef MYSQLI_USE_MYSQLND
+#if defined(A0) && defined(MYSQLI_USE_MYSQLND)
 static void php_mysqli_persistent_helper_for_every(void *p)
 {
        TSRMLS_FETCH();
@@ -898,7 +898,7 @@ PHP_RSHUTDOWN_FUNCTION(mysqli)
        if (MyG(error_msg)) {
                efree(MyG(error_msg));
        }
-#if defined(A0) && MYSQLI_USE_MYSQLND
+#if defined(A0) && defined(MYSQLI_USE_MYSQLND)
        /* psession is being called when the connection is freed - explicitly or implicitly */
        zend_hash_apply(&EG(persistent_list), (apply_func_t) php_mysqli_persistent_helper_once TSRMLS_CC);
 #endif