com php-src: C89 compat: ext/pdo_mysql/mysql_driver.c
| From: | Anatol Belski | Date: | Sat, 06 Dec 2014 11:14:17 +0000 |
| Subject: | com php-src: C89 compat: ext/pdo_mysql/mysql_driver.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83549@lists.php.net to get a copy of this message | ||
Commit: 9016018ccc7e31e543594af7f7b878590c66a82e
Author: Anatol Belski <ab@php.net> Sat, 6 Dec 2014 12:14:17 +0100
Parents: 373aa7c81fbbe71bbb29991f1898b508044d86bb
Branches: PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9016018ccc7e31e543594af7f7b878590c66a82e
Log:
C89 compat
Changed paths:
M ext/pdo_mysql/mysql_driver.c
Diff:
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c
index 348af3e..b331ce2 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