|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-03 09:10 UTC] derick@php.net
[2005-11-03 10:24 UTC] skrol29 at freesurf dot fr
[2005-11-03 15:50 UTC] iliaa@php.net
[2005-11-03 16:37 UTC] skrol29 at freesurf dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 21:00:01 2025 UTC |
Description: ------------ This bug is a change of Assignment by reference behavior bewteen Php versions <= 5.0.4 and the last 5.0.5. In Php 5.0.5 when a variable is re-assigned by reference directly using a function, then the variable is assigned by value. Reproduce code: --------------- <?php $a = 'hello'; $b =& $a; $a =& f_test(); echo "* a = {".$a."}, b = {".$b."}<br>"; function f_test() { return 'tested'; } ?> Expected result: ---------------- * a = {tested}, b = {hello} Actual result: -------------- * a = {tested}, b = {tested}