bug41117_1.phpt 249 B

1234567891011121314
  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