--TEST-- Bug #74345: Call trampoline leaked if callback not invoked --FILE-- getMessage(), "\n"; } try { array_map($cb, null, null); } catch (Error $e) { echo $e->getMessage(), "\n"; } array_filter([], $cb); array_reduce([], $cb); $array = []; array_walk($array, $cb); array_walk_recursive($array, $cb); usort($array, $cb); try { preg_replace_callback('/./', $cb, new stdClass); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> ===DONE=== --EXPECT-- array_map(): Argument #2 ($array) must be of type array, null given array_map(): Argument #2 ($array) must be of type array, null given preg_replace_callback(): Argument #3 ($subject) must be of type array|string, stdClass given ===DONE===