Annotation of embedaddon/php/Zend/tests/bug31177-2.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #31177 (memory corruption because of incorrect refcounting)
                      3: --FILE--
                      4: <?php
                      5: class foo {
                      6:   function foo($n=0) {
                      7:     if($n) throw new Exception("new");
                      8:   }
                      9: }
                     10: $x = new foo();
                     11: try {
                     12:   $y=$x->foo(1);
                     13: } catch (Exception $e) {
                     14:   var_dump($x);
                     15: }
                     16: --EXPECT--
                     17: object(foo)#1 (0) {
                     18: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>