mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
1036fd2a70
* PHP-7.4: Check update constant failure in ReflectionClassConstant::__toString()
19 lines
293 B
PHP
19 lines
293 B
PHP
--TEST--
|
|
Exception thrown while converting ReflectionClassConstant to string
|
|
--FILE--
|
|
<?php
|
|
|
|
class B {
|
|
const X = self::UNKNOWN;
|
|
}
|
|
|
|
try {
|
|
echo new ReflectionClassConstant('B', 'X');
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Undefined constant self::UNKNOWN
|