--TEST-- Bug #46106 (Memory leaks when using global statement) --FILE-- invokeArgs(array(0)); } $x = new ReflectionFunction('str_pad'); try { test($x); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } ?> DONE --EXPECT-- str_pad() expects at least 2 parameters, 1 given DONE