mirror of
https://github.com/php/php-src.git
synced 2026-10-29 02:07:35 +08:00
Updates the output of `ReflectionClassConstant::__toString()` and `ReflectionConstant::__toString()`, as well as the other ways that class constants are printed, e.g. `ReflectionClass::__toString()`.
16 lines
273 B
PHP
16 lines
273 B
PHP
--TEST--
|
|
ReflectionConstant::__toString()
|
|
--FILE--
|
|
<?php
|
|
|
|
const IS_TRUE = true;
|
|
const IS_FALSE = false;
|
|
|
|
echo new ReflectionConstant('IS_TRUE');
|
|
echo new ReflectionConstant('IS_FALSE');
|
|
|
|
?>
|
|
--EXPECT--
|
|
Constant [ bool IS_TRUE ] { true }
|
|
Constant [ bool IS_FALSE ] { false }
|