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