note 70757 added to function.call-user-func

From: Date: Thu, 26 Oct 2006 17:18:09 +0000
Subject: note 70757 added to function.call-user-func
Groups: php.notes 
Request: Send a blank email to php-notes+get-119145@lists.php.net to get a copy of this message
I have found a case where the parameters ARE passed by reference class test { function test() { $this->passme = ''; call_user_func('outsidefunc',$this); // $this->passme is now 'not empty' // with 5.1.2 // not so with php 4.3.10... } } function outsidefunc(&$testy) { $testy->passme = 'not empty'; } $test = new test(); echo 'passme = '.$test->passme; ---- Server IP: 64.71.164.2 Probable Submitter: 68.89.92.50 ---- Manual Page -- http://www.php.net/manual/en/function.call-user-func.php Edit -- https://master.php.net/note/edit/70757 Del: integrated -- https://master.php.net/note/delete/70757/integrated Del: useless -- https://master.php.net/note/delete/70757/useless Del: bad code -- https://master.php.net/note/delete/70757/bad+code Del: spam -- https://master.php.net/note/delete/70757/spam Del: non-english -- https://master.php.net/note/delete/70757/non-english Del: in docs -- https://master.php.net/note/delete/70757/in+docs Del: other reasons-- https://master.php.net/note/delete/70757 Reject -- https://master.php.net/note/reject/70757 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119145) next »