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

1.1     ! misho       1: --TEST--
        !             2: errmsg: cannot reassign $this (by ref)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: class test {
        !             7:        function foo() {
        !             8:                $a = new test;
        !             9:                $this = &$a;
        !            10:        }
        !            11: }
        !            12: 
        !            13: $t = new test;
        !            14: $t->foo();
        !            15: 
        !            16: echo "Done\n";
        !            17: ?>
        !            18: --EXPECTF--    
        !            19: Fatal error: Cannot re-assign $this in %s on line %d

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