summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-04-16 08:54:44 +0000
committerAntony Dovgal <tony2001@php.net>2008-04-16 08:54:44 +0000
commitd9b443095ff849024d7b9f048f736d62ddc54142 (patch)
tree4f18632443ef62528d501fbe92fbb13db1e84c55 /ext/mysql/php_mysql.c
parent9db0be61ad923f68241baac2b26d0009b59cf98b (diff)
downloadphp-git-d9b443095ff849024d7b9f048f736d62ddc54142.tar.gz
change %d to %ld and silence the warning
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 6184d44260..a591f44896 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -586,7 +586,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