|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-07-05 22:35 UTC] amillanir1991 at gmail dot com
[2019-07-05 22:43 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2019-07-05 22:43 UTC] nikic@php.net
[2019-07-06 01:35 UTC] amillanir1991 at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 05:00:01 2025 UTC |
Description: ------------ function that recieve default arguments by reference don´t work, php version 7.3.6 exactly. Test script: --------------- //Don´t work $arr = [10]; function asign(&..$arr){ $arr[0] = 100; } asign($arr); echo "<br> $arr[0]"; //Work $arr = [10]; function asign(&$arr){ $arr[0] = 100; } asign($arr); echo "<br> $arr[0]"; Expected result: ---------------- that the value changed into function Actual result: -------------- it shows nothing on the screen, not even a warning ...