1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/standard/tests/array/bug74345.phpt
Nikita Popov abc457fe1d Fixed bug #74345
Export zend_release_fcall_info_cache(). It is only necessary to
call it if the fcc may not have been used -- if it is passed to
zend_call_function() and friends, then they will take care of
freeing trampolines.
2019-03-20 12:06:42 +01:00

28 lines
452 B
PHP

--TEST--
Bug #74345: Call trampoline leaked if callback not invoked
--FILE--
<?php
class Test {
public function __call($name, $args) {
echo "__call()\n";
}
}
$name = "foo" . ($x = "bar");
$cb = [new Test, $name];
array_map($cb, []);
array_map($cb, [], []);
array_filter([], $cb);
array_reduce([], $cb);
$array = [];
array_walk($array, $cb);
array_walk_recursive($array, $cb);
usort($array, $cb);
?>
===DONE===
--EXPECT--
===DONE===