xref: /PHP-8.2/Zend/tests/declare_006.phpt (revision 7aacc705)
1--TEST--
2Use of non-literals in declare ticks values crashes compiler
3--FILE--
4<?php
5declare(ticks = UNKNOWN_CONST) {
6  echo 'Done';
7}
8?>
9--EXPECTF--
10Fatal error: declare(ticks) value must be a literal in %sdeclare_006.php on line 2
11