Bug #53327 [NEW]: Determine parameter names in ReflectionMethod::invokeArgs

From: Date: Wed, 17 Nov 2010 01:08:57 +0000
Subject: Bug #53327 [NEW]: Determine parameter names in ReflectionMethod::invokeArgs
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156104@lists.php.net to get a copy of this message
From:             
Operating system: Windows 7, Ubuntu 10.10, Gentoo
PHP version:      Irrelevant
Package:          Reflection related
Bug Type:         Bug
Bug description:Determine parameter names in ReflectionMethod::invokeArgs

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 bug report at http://bugs.php.net/bug.php?id=53327&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=53327&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=53327&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=53327&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=53327&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53327&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=53327&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=53327&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=53327&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=53327&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=53327&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=53327&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=53327&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=53327&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=53327&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53327&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53327&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=53327&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=53327&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=53327&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=53327&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=53327&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#156104) next »