xref: /PHP-7.0/Zend/tests/bug41117_1.phpt (revision 77bb96d7)
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 use $this as parameter in %s on line %d
14