|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65429 call_user_func_array can't accept params correctly
Submitted: 2013-08-09 16:48 UTC Modified: 2013-08-09 17:13 UTC
From: 1suming at sina dot com Assigned:
Status: Duplicate Package: Unknown/Other Function
PHP Version: 5.4.17 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: 1suming at sina dot com
New email:
PHP Version: OS:


 [2013-08-09 16:48 UTC] 1suming at sina dot com
From manual page:
class Foo
	public function printArray(array $arr)

$foo1=new Foo();
when I run,the result is
Catchable fatal error: Argument 1 passed to foo::printArray() must be of the 
type array, integer 

but when i change  call_user_func_array to call_user_func,it's ok.
Don't call_user_func_array   accept params?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-09 17:13 UTC]
-Status: Open +Status: Duplicate
 [2013-08-09 17:13 UTC]
Duplicate of bug #65428
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Sep 25 04:05:52 2022 UTC