/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/classes/constants_error_006.phpt
15 строк
340 B
Peter Kokot
Sync leading and final newlines in *.phpt sections
15 окт 2018, 05:33
15 окт 2018, 05:33
d679f02
Код
Авторство
О чём код?
--TEST-- Basic class support - attempting to modify a class constant by assignment --FILE-- <?php class aclass { const myConst = "hello"; } echo "\nTrying to modify a class constant directly - should be parse error.\n"; aclass::myConst = "no!!"; var_dump(aclass::myConst); ?> --EXPECTF-- Parse error: %s in %s on line %d