mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
15 lines
249 B
Plaintext
15 lines
249 B
Plaintext
|
--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
|
||
|
|