|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-02-14 20:15 UTC] cmbecker69 at gmx dot de
[2014-02-16 02:35 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2014-02-16 02:35 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 10:00:01 2025 UTC |
Description: ------------ Function 'call_user_func_array' does not return FALSE when $param_arr is not an array. Test script: --------------- <?php function testFnc() { echo "testFnc() was called"; return true; } echo "\nAbout to call: call_user_func_array()\n"; $result = call_user_func_array('testFnc', "not an array"); echo "\nAbout to call: var_dump()\n"; var_dump($result); ?> Expected result: ---------------- $result should be FALSE (not NULL) according to the documentation page http://php.net/call_user_func_array. Actual result: -------------- About to call: call_user_func_array() <br /> <b>Warning</b>: call_user_func_array() expects parameter 2 to be array, string given in <b>[...][...]</b> on line <b>8</b><br /> About to call: var_dump() NULL