ID: 50240 Updated by: il...@php.net Reported By: foutrelis at gmail dot com -Status: Open +Status: Closed Bug Type: PDO related Operating System: Arch Linux PHP Version: 5.3.1 New Comment:
This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-11-23 15:45:05] s...@php.net Automatic comment from SVN on behalf of iliaa Revision: http://svn.php.net/viewvc/?view=revision&revision=291215 Log: Fixed bug #50240 (pdo_mysql.default_socket in php.ini shouldn't used if it is empty). ------------------------------------------------------------------------ [2009-11-20 12:29:12] foutrelis at gmail dot com Description: ------------ When pdo_mysql.default_socket in php.ini is empty, it shouldn't be used and pdo_mysql should fallback to PDO_MYSQL_UNIX_ADDR. It appears that OnUpdateStringUnempty should be used in the related STD_PHP_INI_ENTRY definition in ext/pdo_mysql/pdo_mysql.c, instead of OnUpdateString. Also, OnUpdateStringUnempty is used by the mysql and mysqli extensions for their default_socket directives, so it makes sense to use it here as well. Proposed patch: http://bugs.archlinux.org/task/17179?getfile=4430 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50240&edit=1