#37344 [NEW]: Crash with PDO and user-defined exception handler
| From: | spaze-bugs at exploited dot cz | Date: | Sun, 07 May 2006 01:06:05 +0000 |
| Subject: | #37344 [NEW]: Crash with PDO and user-defined exception handler | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96753@lists.php.net to get a copy of this message | ||
From: spaze-bugs at exploited dot cz
Operating system: WinXP/SP2
PHP version: 5.1.4
PHP Bug Type: Reproducible crash
Bug description: Crash with PDO and user-defined exception handler
Description:
------------
PHP crashes when using user-defined exception handler to handle PDO
expcetions.
Reproduce code:
---------------
function exception_handler($exception) {
echo 'Uncaught exception: ', $exception->getMessage(), "\n";
}
set_exception_handler('exception_handler');
$dbh = new PDO('mysql:host=mysql41.localhost;port=3306;dbname=foo');
Expected result:
----------------
Uncaught exception: SQLSTATE[28000] [1045] Access denied for user
'ODBC'@'localhost2' (using password: NO)
Actual result:
--------------
Crash with this line in Apache(/2.0.58) errorlog:
[Sun May 07 03:01:26 2006] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
--
Edit bug report at http://bugs.php.net/?id=37344&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37344&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37344&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37344&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37344&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37344&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37344&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37344&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37344&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37344&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37344&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37344&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37344&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37344&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37344&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37344&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37344&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37344&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37344&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37344&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37344&r=mysqlcfg