mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
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.
28 lines
452 B
PHP
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===
|