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
13 lines
212 B
PHP
13 lines
212 B
PHP
--TEST--
|
|
$this as global variable
|
|
--FILE--
|
|
<?php
|
|
function foo() {
|
|
global $this;
|
|
var_dump($this);
|
|
}
|
|
foo();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use $this as global variable in %sthis_as_global.php on line 3
|