ID: 35075 Updated by: [EMAIL PROTECTED] Reported By: skrol29 at freesurf dot fr -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5.0.5 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-11-03 01:47:25] skrol29 at freesurf dot fr 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} ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35075&edit=1