note 98013 added to reflectionmethod.invokeargs

From: Date: Thu, 20 May 2010 15:14:32 +0000
Subject: note 98013 added to reflectionmethod.invokeargs
Groups: php.notes 
Request: Send a blank email to php-notes+get-169451@lists.php.net to get a copy of this message
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

« previous php.notes (#169451) next »