- Fix a warning in php_mysql.c

- Fixed #44371 Extension compile failed
This commit is contained in:
Andrey Hristov 2008-03-10 09:16:13 +00:00
parent c1e0fb5ad3
commit a8e4046c72
2 changed files with 3 additions and 3 deletions

View file

@ -663,7 +663,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
client_flags ^= CLIENT_LOCAL_FILES; 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 /* We cannot use mysql_port anymore in windows, need to use

View file

@ -38,11 +38,11 @@
#ifdef HAVE_MYSQLND #ifdef HAVE_MYSQLND
#include "ext/mysqlnd/mysqlnd.h" #include "ext/mysqlnd/mysqlnd.h"
#include "ext/mysqli/mysqli_mysqlnd.h" #include "mysqli_mysqlnd.h"
#else #else
#include <mysql.h> #include <mysql.h>
#include <errmsg.h> #include <errmsg.h>
#include "ext/mysqli/mysqli_libmysql.h" #include "mysqli_libmysql.h"
#endif #endif
#include "php_mysqli.h" #include "php_mysqli.h"