blob: 144d257f55e999e8dfb256140d49fb1e9116789d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--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===
|