Annotation of embedaddon/php/Zend/tests/bug47165.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #47165 (Possible memory corruption when passing return value by reference)
                      3: --FILE--
                      4: <?php
                      5: class Foo {
                      6:        var $bar = array();
                      7: 
                      8:        static function bar() {
                      9:                static $instance = null;
                     10:                $instance = new Foo();
                     11:                return $instance->bar;
                     12:        }
                     13: }
                     14: extract(Foo::bar());
                     15: echo "ok\n";
                     16: ?>
                     17: --EXPECT--
                     18: ok

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