diff options
-rw-r--r-- | ext/pdo_mysql/mysql_driver.c | 9 | ||||
-rw-r--r-- | ext/standard/formatted_print.c | 1 | ||||
-rw-r--r-- | main/snprintf.c | 1 | ||||
-rw-r--r-- | main/spprintf.c | 1 |
4 files changed, 8 insertions, 4 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index ab5e4bcfd0..73889af5ea 100644 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -557,6 +557,11 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_ |CLIENT_MULTI_RESULTS #endif ; +#if defined(PDO_USE_MYSQLND) + int dbname_len = 0; + int password_len = 0; +#endif + #ifdef CLIENT_MULTI_STATEMENTS if (!driver_options) { connect_opts |= CLIENT_MULTI_STATEMENTS; @@ -565,10 +570,6 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_ } #endif -#if defined(PDO_USE_MYSQLND) - int dbname_len = 0; - int password_len = 0; -#endif PDO_DBG_ENTER("pdo_mysql_handle_factory"); PDO_DBG_INF_FMT("dbh=%p", dbh); #ifdef CLIENT_MULTI_RESULTS diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c index 2efd16247f..1c3abb4d50 100644 --- a/ext/standard/formatted_print.c +++ b/ext/standard/formatted_print.c @@ -28,6 +28,7 @@ #ifdef HAVE_LOCALE_H #include <locale.h> #ifdef ZTS +#include "ext/standard/php_string.h" #define LCONV_DECIMAL_POINT (*lconv.decimal_point) #else #define LCONV_DECIMAL_POINT (*lconv->decimal_point) diff --git a/main/snprintf.c b/main/snprintf.c index a1c03e5947..7e4d8a11ab 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -39,6 +39,7 @@ #ifdef HAVE_LOCALE_H #include <locale.h> #ifdef ZTS +#include "ext/standard/php_string.h" #define LCONV_DECIMAL_POINT (*lconv.decimal_point) #else #define LCONV_DECIMAL_POINT (*lconv->decimal_point) diff --git a/main/spprintf.c b/main/spprintf.c index ff8b723310..ee73d4f4e5 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -94,6 +94,7 @@ #ifdef HAVE_LOCALE_H #include <locale.h> #ifdef ZTS +#include "ext/standard/php_string.h" #define LCONV_DECIMAL_POINT (*lconv.decimal_point) #else #define LCONV_DECIMAL_POINT (*lconv->decimal_point) |