1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00

change %d to %ld and silence the warning

This commit is contained in:
Antony Dovgal
2008-04-16 08:54:44 +00:00
parent 9db0be61ad
commit d9b443095f

View File

@@ -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