dis-bench / src /php /php-src /Zend /tests /declare /declare_005.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
203 Bytes
--TEST--
Testing declare statement with ticks
--FILE--
<?php
register_tick_function(function () { echo "tick\n"; });
function foo() { }
declare(ticks=1) {
$statement;
foo();
}
?>
--EXPECT--
tick
tick