Bug #53327 [Opn->Bgs]: Determine parameter names in ReflectionMethod::invokeArgs
Edit report at http://bugs.php.net/bug.php?id=53327&edit=1
ID: 53327
Updated by: felipe@php.net
Reported by: contato at andersonfraga dot net
Summary: Determine parameter names in
ReflectionMethod::invokeArgs
-Status: Open
+Status: Bogus
Type: Bug
Package: Reflection related
Operating System: Windows 7, Ubuntu 10.10, Gentoo
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
This is an expected behavior, there is no nothing special with argument
names in Reflection.
Previous Comments:
------------------------------------------------------------------------
[2010-11-17 02:08:57] contato at andersonfraga dot net
Description:
------------
I would like to use the names of parameters to execute methods with
specific arguments. But invokeArgs not correctly sends the names with
those on the method.
I think this result is not correct. It should not obey the parameter
names?
Test script:
---------------
http://pastebin.com/fuF4tWGq
Expected result:
----------------
arg1: orange
arg2: apple
arg3:
--
and also report a warning because of missing arg3, i.e.
Actual result:
--------------
arg1: orange
arg2: apple
arg3: bad error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53327&edit=1
Thread (3 messages)