|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-02-01 10:33 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: krakjoe
[2014-02-01 10:33 UTC] krakjoe@php.net
[2014-02-01 13:29 UTC] salathe@php.net
-Status: Closed
+Status: Re-Opened
-Assigned To: krakjoe
+Assigned To:
[2014-02-01 13:29 UTC] salathe@php.net
[2014-11-17 20:47 UTC] salathe@php.net
[2014-11-17 20:48 UTC] salathe@php.net
-Status: Re-Opened
+Status: Closed
-Assigned To:
+Assigned To: salathe
[2014-11-17 20:48 UTC] salathe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 05:00:01 2025 UTC |
Description: ------------ The doc page for call_user_func explains you can't pass arguments by reference (CORRECT) using it, and instead offers this line using call_user_func_array(): "call_user_func_array('increment', array(&$a)); // You can use this instead before PHP 5.3" This comment "You can use this instead before PHP 5.3" is misleading and redundant. Nothing has changed in 5.3 regarding references in the arguments array. This is not call-time pass by reference, it's references in an array. This code work well in 5.2 & in 5.3, without errors/warnings. This comment should be removed, the example is otherwise correct.