]> granicus.if.org Git - php/commitdiff
Trying to fix compiler warnings (on Windows).
authorUlf Wendel <uw@php.net>
Mon, 4 Oct 2010 13:36:23 +0000 (13:36 +0000)
committerUlf Wendel <uw@php.net>
Mon, 4 Oct 2010 13:36:23 +0000 (13:36 +0000)
ext/mysql/php_mysql.c
ext/mysqli/mysqli.c

index 00b680dd2a47ae3bd3918ff8243e8792af552725..e2531ed308896f539308d70811630d8066a578d0 100644 (file)
@@ -637,7 +637,7 @@ PHP_RSHUTDOWN_FUNCTION(mysql)
                efree(MySG(connect_error));
        }
 
-#ifdef A0 && MYSQL_USE_MYSQLND
+#if defined(A0) && MYSQL_USE_MYSQLND
        zend_hash_apply(&EG(persistent_list), (apply_func_t) php_mysql_persistent_helper TSRMLS_CC);
 #endif
 
@@ -888,7 +888,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                        mysql->multi_query = 0;
 #endif
                        /* ensure that the link did not die */
-#if A0 && defined(MYSQL_USE_MYSQLND)
+#if defined(A0) && MYSQL_USE_MYSQLND
                        mysqlnd_end_psession(mysql->conn);
 #endif
                        if (mysql_ping(mysql->conn)) {
index e474776fccc6a7a8cb361ec95745553928c391d8..4b0e916b475128d1f95f3e5b087e35fa4e5e5f48 100644 (file)
@@ -893,7 +893,7 @@ PHP_RSHUTDOWN_FUNCTION(mysqli)
        if (MyG(error_msg)) {
                efree(MyG(error_msg));
        }
-#ifdef A0 && MYSQLI_USE_MYSQLND
+#if defined(A0) && 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