Fixed bug #49306 (inside pdo_mysql default socket settings are ignored).

This commit is contained in:
Ilia Alshanetsky 2009-08-20 12:13:38 +00:00
parent e1f42c3bbb
commit 019f4f2c22
2 changed files with 6 additions and 6 deletions

2
NEWS
View File

@ -22,6 +22,8 @@ PHP NEWS
- Fixed memory leak in stream_is_local(). (Felipe, Tony)
- Fixed BC break in mime_content_type(), removes the content encoding. (Scott)
- Fixed bug #49306 (inside pdo_mysql default socket settings are ignored).
(Ilia)
- Fixed bug #49289 (bcmath module doesn't compile with phpize configure).
(Jani)
- Fixed bug #49269 (Ternary operator fails on Iterator object when used inside

View File

@ -552,12 +552,10 @@ static struct pdo_dbh_methods mysql_methods = {
};
/* }}} */
#ifndef PDO_MYSQL_UNIX_ADDR
# ifdef PHP_WIN32
# define MYSQL_UNIX_ADDR "MySQL"
# else
# define MYSQL_UNIX_ADDR PDO_MYSQL_G(default_socket)
# endif
#ifdef PHP_WIN32
# define MYSQL_UNIX_ADDR "MySQL"
#else
# define MYSQL_UNIX_ADDR PDO_MYSQL_G(default_socket)
#endif
/* {{{ pdo_mysql_handle_factory */