From a27e0c88189a3d73420547210f0603d8bca54166 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Mon, 10 Mar 2008 09:18:43 +0000 Subject: [PATCH] - Fix a warning in php_mysql.c - Fixed #44371 Extension compile failed --- ext/mysql/php_mysql.c | 2 +- ext/mysqli/php_mysqli_structs.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 0604048545..b862f2a58e 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -673,7 +673,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) client_flags ^= CLIENT_LOCAL_FILES; } - hashed_details_length = spprintf(&hashed_details, 0, "mysql_%s_%s_%s_%d", SAFE_STRING(host_and_port), SAFE_STRING(user), SAFE_STRING(passwd), client_flags); + hashed_details_length = spprintf(&hashed_details, 0, "mysql_%s_%s_%s_%ld", SAFE_STRING(host_and_port), SAFE_STRING(user), SAFE_STRING(passwd), client_flags); } /* We cannot use mysql_port anymore in windows, need to use diff --git a/ext/mysqli/php_mysqli_structs.h b/ext/mysqli/php_mysqli_structs.h index 2563efb5d5..05c87be574 100644 --- a/ext/mysqli/php_mysqli_structs.h +++ b/ext/mysqli/php_mysqli_structs.h @@ -38,11 +38,11 @@ #ifdef HAVE_MYSQLND #include "ext/mysqlnd/mysqlnd.h" -#include "ext/mysqli/mysqli_mysqlnd.h" +#include "mysqli_mysqlnd.h" #else #include #include -#include "ext/mysqli/mysqli_libmysql.h" +#include "mysqli_libmysql.h" #endif #include "php_mysqli.h" -- 2.40.0