]> granicus.if.org Git - php/commitdiff
- Fix a warning in php_mysql.c
authorAndrey Hristov <andrey@php.net>
Mon, 10 Mar 2008 09:18:43 +0000 (09:18 +0000)
committerAndrey Hristov <andrey@php.net>
Mon, 10 Mar 2008 09:18:43 +0000 (09:18 +0000)
  - Fixed #44371 Extension compile failed

ext/mysql/php_mysql.c
ext/mysqli/php_mysqli_structs.h

index 0604048545cec4b336e6ec42d293b78c58b77cdf..b862f2a58e9aa6f5ac686d35d4bbec478d8f5406 100644 (file)
@@ -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
index 2563efb5d5ddde1b9d965141ecf7de92a895c699..05c87be57493fcc06988fa9ef02fb0eed7174ac9 100644 (file)
 
 #ifdef HAVE_MYSQLND
 #include "ext/mysqlnd/mysqlnd.h"
-#include "ext/mysqli/mysqli_mysqlnd.h"
+#include "mysqli_mysqlnd.h"
 #else
 #include <mysql.h>
 #include <errmsg.h>
-#include "ext/mysqli/mysqli_libmysql.h"
+#include "mysqli_libmysql.h"
 #endif
 
 #include "php_mysqli.h"