mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fixed bug #50023 (pdo_mysql doesn't use PHP_MYSQL_UNIX_SOCK_ADDR)
# Original patch by six at aegis-corp dot org
This commit is contained in:
parent
8dae9275fc
commit
1e50b1892a
1
NEWS
1
NEWS
@ -14,6 +14,7 @@ PHP NEWS
|
||||
- Fixed memory leak in extension loading when an error occurs on Windows.
|
||||
(Pierre)
|
||||
|
||||
- Fixed bug #50023 (pdo_mysql doesn't use PHP_MYSQL_UNIX_SOCK_ADDR). (Ilia)
|
||||
- Fixed bug #49142 (crash when exception thrown from __tostring()).
|
||||
(David Soria Parra)
|
||||
- Fixed bug #49990 (SNMP3 warning message about security level printed twice).
|
||||
|
@ -40,11 +40,14 @@ ZEND_DECLARE_MODULE_GLOBALS(pdo_mysql);
|
||||
|
||||
#ifndef PHP_WIN32
|
||||
# ifndef PDO_MYSQL_UNIX_ADDR
|
||||
# define PDO_MYSQL_UNIX_ADDR "/tmp/mysql.sock"
|
||||
# ifdef PHP_MYSQL_UNIX_SOCK_ADDR
|
||||
# define PDO_MYSQL_UNIX_ADDR PHP_MYSQL_UNIX_SOCK_ADDR
|
||||
# else
|
||||
# define PDO_MYSQL_UNIX_ADDR "/tmp/mysql.sock"
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
/* {{{ PHP_INI_BEGIN
|
||||
*/
|
||||
PHP_INI_BEGIN()
|
||||
|
Loading…
Reference in New Issue
Block a user