mirror of
https://github.com/php/php-src.git
synced 2025-01-04 18:03:39 +08:00
290adc4132
Instead of representing this as a ZEND_AST_CLASS_CONST with a "class" constant name. Class constants and ::class are unrelated features that happen to share syntax, so represent and handle them separately.
12 lines
187 B
PHP
12 lines
187 B
PHP
--TEST--
|
|
$var::class is not supported
|
|
--FILE--
|
|
<?php
|
|
|
|
$obj = new stdClass;
|
|
var_dump($obj::class);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use ::class with dynamic class name in %s on line %d
|