xref: /PHP-7.1/Zend/tests/this_as_static.phpt (revision a9512af8)
1--TEST--
2$this as static variable
3--FILE--
4<?php
5function foo() {
6	static $this;
7	var_dump($this);
8}
9foo();
10?>
11--EXPECTF--
12Fatal error: Cannot use $this as static variable in %sthis_as_static.php on line 3
13