note 64380 deleted from language.references.pass by bjori

From: Date: Thu, 13 Apr 2006 11:19:27 +0000
Subject: note 64380 deleted from language.references.pass by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-107971@lists.php.net to get a copy of this message
Note Submitter: mail at tristanperich dot com Reason: in docs ---- There's a problem (at least in PHP 5) regarding passing parameters by reference to functions. If you use call_user_func() to call a function, for instance MyFunction(&$Parameter), that defines that a parameter is passed by reference, the parameter will NOT be passed by reference just because it is defined that way in the function declaration. To get around this, just make sure to pass the parameter by reference in call_user_func(), such as call_user_func("MyFunction", &$Parameter).

« previous php.notes (#107971) next »