mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
18 lines
293 B
PHP
18 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
|