1--TEST--
2Bug #41970 (call_user_func_*() leaks on failure)
3--FILE--
4<?php
5
6$a = array(4,3,2);
7
8var_dump(call_user_func_array("sort", array($a)));
9var_dump(call_user_func_array("strlen", array($a)));
10var_dump(call_user_func("sort", $a));
11var_dump(call_user_func("strlen", $a));
12
13echo "Done\n";
14?>
15--EXPECTF--
16Warning: Parameter 1 to sort() expected to be a reference, value given in %sbug41970.php on line 5
17NULL
18
19Warning: strlen() expects parameter 1 to be string, array given in %sbug41970.php on line 6
20NULL
21
22Warning: Parameter 1 to sort() expected to be a reference, value given in %sbug41970.php on line 7
23NULL
24
25Warning: strlen() expects parameter 1 to be string, array given in %sbug41970.php on line 8
26NULL
27Done
28