mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Merge branch 'PHP-5.6'
* PHP-5.6: updated NEWS updated NEWS PDO_MySQL: Differentiate between linux and win32 when passing unix_socket Conflicts: ext/pdo_mysql/mysql_driver.c
This commit is contained in:
commit
29688512b4
@ -748,7 +748,12 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options)
|
||||
if(vars[3].optval) {
|
||||
port = atoi(vars[3].optval);
|
||||
}
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
if (vars[2].optval && !strcmp(".", vars[2].optval)) {
|
||||
#else
|
||||
if (vars[2].optval && !strcmp("localhost", vars[2].optval)) {
|
||||
#endif
|
||||
unix_socket = vars[4].optval;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user