Skip to content

Commit a884bbf

Browse files
committed
compile out both parts of the code that are currently unused - fixes a compilation warning
1 parent c99e0d9 commit a884bbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mysqli/mysqli.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ PHP_RINIT_FUNCTION(mysqli)
867867
}
868868
/* }}} */
869869

870-
#ifdef MYSQLI_USE_MYSQLND
870+
#if defined(A0) && defined(MYSQLI_USE_MYSQLND)
871871
static void php_mysqli_persistent_helper_for_every(void *p)
872872
{
873873
TSRMLS_FETCH();
@@ -898,7 +898,7 @@ PHP_RSHUTDOWN_FUNCTION(mysqli)
898898
if (MyG(error_msg)) {
899899
efree(MyG(error_msg));
900900
}
901-
#if defined(A0) && MYSQLI_USE_MYSQLND
901+
#if defined(A0) && defined(MYSQLI_USE_MYSQLND)
902902
/* psession is being called when the connection is freed - explicitly or implicitly */
903903
zend_hash_apply(&EG(persistent_list), (apply_func_t) php_mysqli_persistent_helper_once TSRMLS_CC);
904904
#endif

0 commit comments

Comments
 (0)