blob: 38c93cffd2bccbfc6a3b435d0f571038a6a5eb90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
class name as scalar from ::class keyword error using parent in non class context
--FILE--
<?php
$x = parent::class;
?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot use "parent" in the global scope in %s:%d
Stack trace:
#0 {main}
thrown in %s on line 3
|