]> granicus.if.org Git - php/commitdiff
change %d to %ld and silence the warning
authorAntony Dovgal <tony2001@php.net>
Wed, 16 Apr 2008 08:54:44 +0000 (08:54 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 16 Apr 2008 08:54:44 +0000 (08:54 +0000)
ext/mysql/php_mysql.c

index 6184d44260b6a4298a5fe848918ebcd625ffcd7e..a591f44896810bafd50b60ce477f76abc843159f 100644 (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