summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-08-02 14:02:21 +0000
committerAndrey Hristov <andrey@php.net>2011-08-02 14:02:21 +0000
commita884bbf1e981fa8233f59a6d6235347e8ba29ceb (patch)
treefec766e3bd49ce55e9181ca253a8544e5d11e379 /ext/mysqli/mysqli.c
parentc99e0d931401e1b13d926aea2f214181ca897119 (diff)
downloadphp-git-a884bbf1e981fa8233f59a6d6235347e8ba29ceb.tar.gz
compile out both parts of the code that are currently unused - fixes a compilation warning
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index a0815ea8bd..fc35c8302e 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -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