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

1.1     ! misho       1: --TEST--
        !             2: Bug #41117 (Altering $this via argument)
        !             3: --FILE--
        !             4: <?php
        !             5: class foo {
        !             6:   function __construct($this) {
        !             7:     echo $this."\n";
        !             8:   }
        !             9: }
        !            10: $obj = new foo("Hello world");
        !            11: ?>
        !            12: --EXPECTF--
        !            13: Fatal error: Cannot re-assign $this in %sbug41117_1.php on line 3
        !            14: 

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