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