xref: /PHP-7.2/Zend/tests/declare_006.phpt (revision f1d7e3ca)
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--EXPECTF--
9Fatal error: declare(ticks) value must be a literal in %sdeclare_006.php on line 2
10