diff options
author | Anatol Belski <ab@php.net> | 2014-12-06 12:14:17 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-12-06 12:14:17 +0100 |
commit | 9016018ccc7e31e543594af7f7b878590c66a82e (patch) | |
tree | fc73219d623a487d70007e76a9f978f18f6baa77 /ext/pdo_mysql/mysql_driver.c | |
parent | 373aa7c81fbbe71bbb29991f1898b508044d86bb (diff) | |
download | php-git-9016018ccc7e31e543594af7f7b878590c66a82e.tar.gz |
C89 compat
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
-rw-r--r-- | ext/pdo_mysql/mysql_driver.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index 348af3ed6a..b331ce23dd 100644 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -552,6 +552,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; @@ -560,10 +565,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 |