|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2012-12-26 15:50 UTC] reeze@php.net
 
-Status: Open
+Status: Not a bug
  [2012-12-26 15:50 UTC] reeze@php.net
  [2012-12-26 15:56 UTC] alexander dot moldova at gmail dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 17:00:02 2025 UTC | 
Description: ------------ calling closure when providing it as an arg from the args array provided as the second parameter for the invokeArgs method from \ReflectionMethod class Test script: --------------- method is: public function simpleTest($a, callable $b, array $c) { return (int) call_user_func_array($b, $c) + $a; } $params is: array (size=3) 0 => int 2 1 => object(Closure)[95] 2 => array (size=1) 0 => int 2 and calling: $this->refl->invokeArgs(new Blablabla, $params); will generate the bug Expected result: ---------------- method returning value Actual result: -------------- Error: Argument 1 passed to {closure}() must be of the type array, integer given In fact instead or the array is provided the "int 2"