mirror of
https://github.com/php/php-src.git
synced 2026-04-28 10:43:30 +02:00
Fix connecting to remote host, patch by Tim Friebe
This commit is contained in:
@@ -327,6 +327,7 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
|
||||
if (vars[2].optval && !strcmp("localhost", vars[2].optval)) {
|
||||
unix_socket = vars[4].optval;
|
||||
} else {
|
||||
host = vars[2].optval;
|
||||
port = atoi(vars[3].optval);
|
||||
}
|
||||
dbname = vars[1].optval;
|
||||
|
||||
Reference in New Issue
Block a user