mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
14 lines
250 B
PHP
14 lines
250 B
PHP
--TEST--
|
|
Test to ensure ::class is still reserved in obj scope
|
|
--FILE--
|
|
<?php
|
|
|
|
class Obj
|
|
{
|
|
const CLASS = 'class';
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: A class constant must not be called 'class'; it is reserved for class name fetching in %s on line %d
|