1
0
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:
Wez Furlong
2005-02-18 15:11:27 +00:00
parent ff1687731d
commit 86708673fb
+1
View File
@@ -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;