Annotation of embedaddon/php/Zend/tests/bug34358.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #34358 (Fatal error: Cannot re-assign $this(again))
        !             3: --FILE--
        !             4: <?php
        !             5: class foo {
        !             6:   function bar() {
        !             7:     $ref = &$this;
        !             8:   }
        !             9: }
        !            10: $x = new foo();
        !            11: $x->bar();
        !            12: echo "ok\n";
        !            13: ?>
        !            14: --EXPECT--
        !            15: ok

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