blob: d990ab5ba1bfd325719c2addbcec08f81b2b7e74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--TEST--
$this as static variable
--FILE--
<?php
function foo() {
static $this;
var_dump($this);
}
foo();
?>
--EXPECTF--
Fatal error: Cannot use $this as static variable in %sthis_as_static.php on line 3
|