|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-25 17:48 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 12:00:01 2025 UTC |
Description: ------------ When using a pass by reference parameter with a default value, the scripting engine does not always remember that reference. The script shows that ++$i; func($i); and func(++$i); are not equivalent at all times. When not using the default value and submitting an actual variable, both expressions are handled the same way. Reproduce code: --------------- See http://helplets.com/PHP/referencebug.txt Expected result: ---------------- 0123456 -------- 0123456 -------- 0123456 Actual result: -------------- 0123456 -------- 01234545 -------- 0123456