source: src/router/php7/Zend/tests/declare_006.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 231 bytes
Line 
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--
9
10Fatal error: declare(ticks) value must be a literal in %sdeclare_006.php on line 2
Note: See TracBrowser for help on using the repository browser.