summaryrefslogtreecommitdiff
path: root/Zend/tests/bug49893.phpt
blob: adab4421ddcb207b86486ce813a6fde9d5dbcb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #49893 (Crash while creating an instance of Zend_Mail_Storage_Pop3)
--FILE--
<?php
class A {
    function __destruct() {
        try {
            throw new Exception("2");
        } catch (Exception $e) {
            echo $e->getMessage() . "\n";
        }
    }
}
class B {
    function __construct() {
        $this->a = new A();
        throw new Exception("1");
    }
}
try {
    $b = new B();
} catch(Exception $e) {
    echo $e->getMessage() . "\n";
}
?>
--EXPECT--
2
1