mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
19 lines
215 B
PHP
19 lines
215 B
PHP
--TEST--
|
|
Testing declare statement with ticks
|
|
--SKIPIF--
|
|
--FILE--
|
|
<?php
|
|
register_tick_function(function () { echo "tick\n"; });
|
|
function foo() { }
|
|
|
|
declare(ticks=1) {
|
|
|
|
$statement;
|
|
foo();
|
|
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
tick
|
|
tick
|