![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: catch shouldn't call __autoload 3: --FILE-- 4: <?php 5: function __autoload($name) { 6: echo("AUTOLOAD '$name'\n"); 7: eval("class $name {}"); 8: } 9: 10: 11: try { 12: } catch (A $e) { 13: } 14: 15: try { 16: throw new Exception(); 17: } catch (B $e) { 18: } catch (Exception $e) { 19: echo "ok\n"; 20: } 21: ?> 22: --EXPECT-- 23: ok