bug41117_1.phpt 242 B

12345678910111213
  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 use $this as parameter in %s on line %d