mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
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
|