it seems that ReflectionMethod::invodeArgs() dont like reference-arguments in the method to call:
<?php
class Test{
function foo(&$arg){
$arg++;
}
}
$test = new Test();
$class = new ReflectionClass("Test");
$method = $class->getMethod("foo");
$bar = 9;
$method->invokeArgs($test, array($bar));
# RESULT: "Invocation of method Test::foo() failed"
----
Server IP: 212.124.37.9
Probable Submitter: 84.129.179.58
----
Manual Page -- http://www.php.net/manual/en/reflectionmethod.invokeargs.php
Edit -- https://master.php.net/note/edit/98013
Del: integrated -- https://master.php.net/note/delete/98013/integrated
Del: useless -- https://master.php.net/note/delete/98013/useless
Del: bad code -- https://master.php.net/note/delete/98013/bad+code
Del: spam -- https://master.php.net/note/delete/98013/spam
Del: non-english -- https://master.php.net/note/delete/98013/non-english
Del: in docs -- https://master.php.net/note/delete/98013/in+docs
Del: other reasons-- https://master.php.net/note/delete/98013
Reject -- https://master.php.net/note/reject/98013
Search -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.