blob: 0c32927dc2fd13996560f60345a7e239702b36c1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--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
|