Edit report at http://bugs.php.net/bug.php?id=53327&edit=1
ID: 53327
User updated by: contato at andersonfraga dot net
Reported by: contato at andersonfraga dot net
Summary: Determine parameter names in
ReflectionMethod::invokeArgs
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:
I think this would be a nice feature...
Thank you Felipe.
Previous Comments:
------------------------------------------------------------------------
[2010-11-17 21:54:59] [email protected]
This is an expected behavior, there is no nothing special with argument
names in Reflection.
------------------------------------------------------------------------
[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