#49163 [NEW]: Exception Bug?

From: Date: Wed, 05 Aug 2009 02:53:37 +0000
Subject: #49163 [NEW]: Exception Bug?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140663@lists.php.net to get a copy of this message
From: coolgk at gmail dot com Operating system: ubuntu5.6 PHP version: 6SVN-2009-08-05 (SVN) PHP Bug Type: *General Issues Bug description: Exception Bug? Description: ------------ the script displays a fatal error, but the exception should have stopped the script before the error happened, also the line number in error message is wrong. Reproduce code: --------------- --- From manual page: function.set-exception-handler --- function test($e){ echo $e->getMessage(); } set_exception_handler('test'); $x = new c(); function __autoload($className){ echo "Autoload"; throw new Exception(' Failed'); } Expected result: ---------------- Autoload Failed Actual result: -------------- Autoload Fatal error: Class 'c2' not found in /home/coolgk/public_html/misc/Framework/public/test3.php on line 16 -- Edit bug report at http://bugs.php.net/?id=49163&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49163&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49163&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49163&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49163&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49163&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49163&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49163&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49163&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49163&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49163&r=support Expected behavior: http://bugs.php.net/fix.php?id=49163&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49163&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49163&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49163&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49163&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49163&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49163&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49163&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49163&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49163&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49163&r=mysqlcfg

« previous php.bugs (#140663) next »