#39053 [NEW]: errorInfo not populated for connect error

From: Date: Thu, 05 Oct 2006 20:23:11 +0000
Subject: #39053 [NEW]: errorInfo not populated for connect error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103163@lists.php.net to get a copy of this message
From: xing at mac dot com Operating system: Linux PHP version: 5CVS-2006-10-05 (snap) PHP Bug Type: PDO related Bug description: errorInfo not populated for connect error Description: ------------ When pdo connect fails, the pdoexception object field "errorInfo" is properly set. Mysql 5.0.24a PHP 5.2snap Reproduce code: --------------- Use pdo to a non-existing mysql server. Catch and print_r() exception. Expected result: ---------------- ...pdo exception snippet... [errorInfo] => Array ( [0] => HY000 [1] => 2003 [2] => Can't connect to MySQL server on '1276.0.0.86' (111) ) Actual result: -------------- [errorInfo] => (empty errorInfo property) -- Edit bug report at http://bugs.php.net/?id=39053&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39053&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39053&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39053&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39053&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39053&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39053&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39053&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39053&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39053&r=support Expected behavior: http://bugs.php.net/fix.php?id=39053&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39053&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39053&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39053&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39053&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39053&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39053&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39053&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39053&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39053&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39053&r=mysqlcfg

« previous php.bugs (#103163) next »