/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/ReflectionConstant_getExtensionName.phpt
26 строк
648 B
DanielEScherzer
Add `ReflectionConstant::getExtension()` and `::getExtensionName()` (#16603)
09 ноя 2024, 13:08
Не верифицирован
09 ноя 2024, 13:08
10f1f92
Код
Авторство
О чём код?
--TEST-- ReflectionConstant::getExtensionName() --EXTENSIONS-- json --FILE-- <?php $reflectionConstant = new ReflectionConstant('PHP_VERSION'); var_dump($reflectionConstant->getExtensionName()); $reflectionConstant = new ReflectionConstant('JSON_ERROR_NONE'); var_dump($reflectionConstant->getExtensionName()); const CT_CONST = 5; $reflectionConstant = new ReflectionConstant('CT_CONST'); var_dump($reflectionConstant->getExtensionName()); define('RT_CONST', 6); $reflectionConstant = new ReflectionConstant('RT_CONST'); var_dump($reflectionConstant->getExtensionName()); ?> --EXPECT-- string(4) "Core" string(4) "json" bool(false) bool(false)