From: foutrelis at gmail dot com Operating system: Arch Linux PHP version: 5.3.1 PHP Bug Type: PDO related Bug description: pdo_mysql.default_socket in php.ini shouldn't used if it's empty
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 bug report at http://bugs.php.net/?id=50240&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50240&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50240&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50240&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50240&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50240&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50240&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50240&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50240&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50240&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50240&r=support Expected behavior: http://bugs.php.net/fix.php?id=50240&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50240&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50240&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50240&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50240&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50240&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50240&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50240&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50240&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50240&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50240&r=mysqlcfg