1234567891011121314151617181920212223242526272829 |
- --TEST--
- Bug
- --FILE--
- <?php
- class Foo {
- function __destruct() {
- throw new Exception("ops 1");
- }
- }
- function test() {
- $e = new Foo();
- try {
- throw new Exception("ops 2");
- } catch (Exception $e) {
- echo $e->getMessage()."\n";
- }
- }
- test();
- echo "bug\n";
- ?>
- --EXPECTF--
- Fatal error: Uncaught Exception: ops 1 in %sbug53511.php:4
- Stack trace:
- thrown in %sbug53511.php on line 4
|