mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
0189585c9e
Tick function arguments need to be copied to fci params.
20 lines
359 B
PHP
20 lines
359 B
PHP
--TEST--
|
|
Testing declare statement with ticks with callback arguments
|
|
--FILE--
|
|
<?php
|
|
register_tick_function(function (stdClass $object, array $array) {
|
|
echo "tick: ", get_class($object), " ", count($array), "\n";
|
|
}, new \stdClass(), [1, 2, 3]);
|
|
function foo() { }
|
|
|
|
declare(ticks=1) {
|
|
|
|
$statement;
|
|
foo();
|
|
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
tick: stdClass 3
|
|
tick: stdClass 3
|