|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-16 21:48 UTC] messju at lammfellpuschen dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 21:00:01 2025 UTC |
Description: ------------ When an assingment is passed as a function argument that is expected to be passed by reference, an E_STRICT message is thrown: "<b>Strict Standards</b>: Only variables should be passed by reference" and the reference is lost. This was not the case in 5.1.1 Reproduce code: --------------- function foo(&$a) { $a = 1; } foo($a = 0); var_dump($a); Expected result: ---------------- int(1) Actual result: -------------- int(0)