note 94993 added to function.call-user-func-array

From: Date: Mon, 07 Dec 2009 16:34:39 +0000
Subject: note 94993 added to function.call-user-func-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-163669@lists.php.net to get a copy of this message
If you are using PHP < 5.3 and want to call the parent class' __construct() with a variable parameter list, use this: public function __construct() { $vArgs = func_get_args(); // you can't just put func_get_args() into a function as a parameter call_user_func_array(array('parent', '__construct'), $vArgs); } ---- Server IP: 212.126.36.70 Probable Submitter: 86.45.10.225 ---- Manual Page -- http://www.php.net/manual/en/function.call-user-func-array.php Edit -- https://master.php.net/note/edit/94993 Del: integrated -- https://master.php.net/note/delete/94993/integrated Del: useless -- https://master.php.net/note/delete/94993/useless Del: bad code -- https://master.php.net/note/delete/94993/bad+code Del: spam -- https://master.php.net/note/delete/94993/spam Del: non-english -- https://master.php.net/note/delete/94993/non-english Del: in docs -- https://master.php.net/note/delete/94993/in+docs Del: other reasons-- https://master.php.net/note/delete/94993 Reject -- https://master.php.net/note/reject/94993 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163669) next »