ID:               41781
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux 2.6.20.2 / Debian Sarge
 PHP Version:      5.2.3
 New Comment:

0123456
--------
0
Strict Standards: Only variables should be passed by reference in
/tmp/3.php on line 26
1
Strict Standards: Only variables should be passed by reference in
/tmp/3.php on line 26
2
Strict Standards: Only variables should be passed by reference in
/tmp/3.php on line 20
3
Strict Standards: Only variables should be passed by reference in
/tmp/3.php on line 26
4
Strict Standards: Only variables should be passed by reference in
/tmp/3.php on line 26
5
Strict Standards: Only variables should be passed by reference in
/tmp/3.php on line 26
4
Strict Standards: Only variables should be passed by reference in
/tmp/3.php on line 26
5
--------
0123456



Previous Comments:
------------------------------------------------------------------------

[2007-06-22 15:14:15] [EMAIL PROTECTED]

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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41781&edit=1

Reply via email to