Skip to content

Commit c28ab73

Browse files
committed
Fix compiler warning on redefined constant
1 parent 9b6aa26 commit c28ab73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/pdo_mysql/mysql_driver.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,9 @@ static struct pdo_dbh_methods mysql_methods = {
527527
/* }}} */
528528

529529
#ifdef PHP_WIN32
530-
# define MYSQL_UNIX_ADDR NULL
530+
# define PDO_DEFAULT_MYSQL_UNIX_ADDR NULL
531531
#else
532-
# define MYSQL_UNIX_ADDR PDO_MYSQL_G(default_socket)
532+
# define PDO_DEFAULT_MYSQL_UNIX_ADDR PDO_MYSQL_G(default_socket)
533533
#endif
534534

535535
/* {{{ pdo_mysql_handle_factory */
@@ -545,7 +545,7 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
545545
{ "dbname", "", 0 },
546546
{ "host", "localhost", 0 },
547547
{ "port", "3306", 0 },
548-
{ "unix_socket", MYSQL_UNIX_ADDR, 0 },
548+
{ "unix_socket", PDO_DEFAULT_MYSQL_UNIX_ADDR, 0 },
549549
};
550550
int connect_opts = 0
551551
#ifdef CLIENT_MULTI_RESULTS

0 commit comments

Comments
 (0)