ID:               43258
 Updated by:       [EMAIL PROTECTED]
 Reported By:      frankw at well dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: W2K
 PHP Version:      5.2CVS-2007-11-12 (snap)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php




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

[2007-11-12 08:21:22] frankw at well dot com

Old PHP version: 4.3.10, new version 5.2.5. Both on Windows 2000.

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

[2007-11-12 08:19:05] frankw at well dot com

Description:
------------
The behavior of the next() function has changed between versions 4 and
5.

Reproduce code:
---------------
<?php
$a = array( "a", "b", "c");
foreach ($a as $aa) {
    print($aa);
    if (next($a))
        print(" + ");
}
?>


Expected result:
----------------
a + b + c

Actual result:
--------------
a + bc


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


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

Reply via email to