blob: 7901dad7d703def2f1a6a07f022b26549ed780bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--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
|