Reflection API r1.136
| From: | Timm Friebe | Date: | Tue, 02 Nov 2004 11:11:22 +0000 |
| Subject: | Reflection API r1.136 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13679@lists.php.net to get a copy of this message | ||
revision 1.136
date: 2004/10/31 15:30:53; author: helly; state: Exp; lines: +163 -1
- Add ReflectionFunction::invokeArgs(array)
- Add ReflectionMethod::invokeArgs(obj, array)
Why was this added?
These:
1) call_user_func_array(
array(new ReflectionMethod('class', 'method'), 'invoke',
array(1, 2, 3)
)
2) call_user_func(
array(new ReflectionMethod('class', 'method'), 'invoke',
1, 2, 3
)
work just fine. Do we really need to duplicate code where a solution
already exists?
- Timm