blob: af86c5b1654dee1d377948319ba3b09013fc5ec3 (
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
|