php-src/Zend/tests/declare_006.phpt
2020-08-09 22:03:36 +02:00

11 lines
233 B
PHP

--TEST--
Use of non-literals in declare ticks values crashes compiler
--FILE--
<?php
declare(ticks = UNKNOWN_CONST) {
echo 'Done';
}
?>
--EXPECTF--
Fatal error: declare(ticks) value must be a literal in %sdeclare_006.php on line 2