diff options
author | George Peter Banyard <girgias@php.net> | 2020-05-20 15:41:13 +0200 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-05-20 16:29:52 +0200 |
commit | c932cc841ab1bd80dbb1465f29d58302c95e8c78 (patch) | |
tree | 0d75ec3917bb58c6b4f73f81bead5f49a672a8b8 /ext/pdo_mysql/mysql_driver.c | |
parent | db7dc2fa2fdea20a70f1a45c2e05988579398d7a (diff) | |
download | php-git-c932cc841ab1bd80dbb1465f29d58302c95e8c78.tar.gz |
Fix [-Wundef] warning in PDO MySQL extension
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
-rw-r--r-- | ext/pdo_mysql/mysql_driver.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index 4f83223af5..f347800352 100644 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -32,7 +32,7 @@ #endif #include "zend_exceptions.h" -#if defined(PDO_USE_MYSQLND) +#ifdef PDO_USE_MYSQLND # define pdo_mysql_init(persistent) mysqlnd_init(MYSQLND_CLIENT_NO_FLAG, persistent) #else # define pdo_mysql_init(persistent) mysql_init(NULL) @@ -224,7 +224,7 @@ static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len if (S->num_params) { S->params_given = 0; -#if defined(PDO_USE_MYSQLND) +#ifdef PDO_USE_MYSQLND S->params = NULL; #else S->params = ecalloc(S->num_params, sizeof(MYSQL_BIND)); @@ -444,7 +444,7 @@ static int pdo_mysql_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_ ZVAL_STRING(return_value, (char *)mysql_get_host_info(H->server)); break; case PDO_ATTR_SERVER_INFO: { -#if defined(PDO_USE_MYSQLND) +#ifdef PDO_USE_MYSQLND zend_string *tmp; if (mysqlnd_stat(H->server, &tmp) == PASS) { @@ -577,7 +577,7 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options) |CLIENT_MULTI_RESULTS #endif ; -#if defined(PDO_USE_MYSQLND) +#ifdef PDO_USE_MYSQLND size_t dbname_len = 0; size_t password_len = 0; #endif @@ -610,7 +610,7 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options) pdo_mysql_error(dbh); goto cleanup; } -#if defined(PDO_USE_MYSQLND) +#ifdef PDO_USE_MYSQLND if (dbh->is_persistent) { mysqlnd_restart_psession(H->server); } |