diff options
| author | Andrey Hristov <andrey@php.net> | 2008-03-10 09:16:13 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2008-03-10 09:16:13 +0000 |
| commit | a8e4046c72d300bde42070dee92a8ca005650ae3 (patch) | |
| tree | 533fb04bfe7bbe47d494cddf5dbd1fc6e7c25257 /ext/mysql | |
| parent | c1e0fb5ad3ff176654aec69205432c63c5e11f5d (diff) | |
| download | php-git-a8e4046c72d300bde42070dee92a8ca005650ae3.tar.gz | |
- Fix a warning in php_mysql.c
- Fixed #44371 Extension compile failed
Diffstat (limited to 'ext/mysql')
| -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 5a41061f59..03561760a1 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -663,7 +663,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 |
