From: ryan dot brothers at gmail dot com Operating system: Linux PHP version: 5.5.0 Package: Scripting Engine problem Bug Type: Bug Bug description:exception not catchable when thrown from autoload in an extended class
Description: ------------ This issue may be the same issue as bug 65254 that I just submitted. The following script throws a Fatal Error rather than catching the exception. Test script: --------------- <?php function __autoload($class) { throw new Exception('abcd'); } class test1 extends test2 { public static function go() { } } try { test1::go(); } catch (Exception $e) { echo 'caught'; exit; } Expected result: ---------------- caught Actual result: -------------- Fatal error: Uncaught exception 'Exception' with message 'abcd' in /tmp/test.php:4 Stack trace: #0 /tmp/test.php(8): __autoload('test2') #1 {main} thrown in /tmp/test.php on line 4 -- Edit bug report at https://bugs.php.net/bug.php?id=65255&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65255&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65255&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65255&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65255&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65255&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65255&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65255&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65255&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65255&r=support Expected behavior: https://bugs.php.net/fix.php?id=65255&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65255&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65255&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65255&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65255&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65255&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65255&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65255&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65255&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65255&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65255&r=mysqlcfg