From: Andrey Hristov Date: Tue, 2 Aug 2011 14:18:56 +0000 (+0000) Subject: completely compile out a currently non-needed function X-Git-Tag: php-5.4.0alpha3~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7fd79b9483edb8a2c470f190437551613370c22;p=php completely compile out a currently non-needed function --- diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 78972c95c1..f6fd05eb91 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -608,7 +608,7 @@ PHP_RINIT_FUNCTION(mysql) /* }}} */ -#ifdef MYSQL_USE_MYSQLND +#if defined(A0) && defined(MYSQL_USE_MYSQLND) static int php_mysql_persistent_helper(zend_rsrc_list_entry *le TSRMLS_DC) { if (le->type == le_plink) { @@ -637,7 +637,7 @@ PHP_RSHUTDOWN_FUNCTION(mysql) efree(MySG(connect_error)); } -#if defined(A0) && MYSQL_USE_MYSQLND +#if defined(A0) && defined(MYSQL_USE_MYSQLND) zend_hash_apply(&EG(persistent_list), (apply_func_t) php_mysql_persistent_helper TSRMLS_CC); #endif