mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Create new sub directories for tests related to backtraces and for tests related to `$this` being reserved in different places and not being usable or reassignable. Work towards GH-15631
14 lines
242 B
PHP
14 lines
242 B
PHP
--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 use $this as parameter in %s on line %d
|