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