|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-02 16:03 UTC] reeze@php.net
-Status: Open
+Status: Not a bug
[2015-03-02 16:03 UTC] reeze@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 14:00:01 2025 UTC |
Description: ------------ When a parameter(declared as reference) is passed by mixing an expression & assignment, the paramter actually passed seems to be the expression, not the variable itself. PHP version tested: 5.4.37 & 5.5.18. Test script: --------------- function test (&$a) { $a = 10; } test ($a = 20); echo $a; Expected result: ---------------- 10 Actual result: -------------- 20