note 110030 added to function.func-get-args

From: Date: Thu, 13 Sep 2012 11:58:58 +0000
Subject: note 110030 added to function.func-get-args
Groups: php.notes 
Request: Send a blank email to php-notes+get-190715@lists.php.net to get a copy of this message
it seems that this function only returns a copy and loses it's byref information, use this dirty non-efficient workaround instead: at the moment of writing it currently returns all of them as references, instead of only the ones who are passed that way... <?php function func_get_args_byref() { $trace = debug_backtrace(); return $trace[1]['args']; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 91.183.52.232 ---- Manual Page -- http://www.php.net/manual/en/function.func-get-args.php Edit -- https://master.php.net/note/edit/110030 Del: integrated -- https://master.php.net/note/delete/110030/integrated Del: useless -- https://master.php.net/note/delete/110030/useless Del: bad code -- https://master.php.net/note/delete/110030/bad+code Del: spam -- https://master.php.net/note/delete/110030/spam Del: non-english -- https://master.php.net/note/delete/110030/non-english Del: in docs -- https://master.php.net/note/delete/110030/in+docs Del: other reasons-- https://master.php.net/note/delete/110030 Reject -- https://master.php.net/note/reject/110030 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190715) next »