diff options
author | Andrey Hristov <andrey@php.net> | 2008-03-10 09:18:43 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-03-10 09:18:43 +0000 |
commit | a27e0c88189a3d73420547210f0603d8bca54166 (patch) | |
tree | 237575f213267843e8261db9fd44fe9b6bd9d0cb /ext/mysql/php_mysql.c | |
parent | 08b5500f4b8cbc71497f38e4550ff3ac1f3674de (diff) | |
download | php-git-a27e0c88189a3d73420547210f0603d8bca54166.tar.gz |
- Fix a warning in php_mysql.c
- Fixed #44371 Extension compile failed
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 2 |
1 files changed, 1 insertions, 1 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 |