From: nnbaran at gmail dot com Operating system: irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: www.php.net/types.array section Example 11-8. Collection
Description: ------------ Example 11-8. Collection on www.php.net/types.array: "Note that it is currently not possible to change the values of the array directly in such a loop. A workaround is the following:" the loop it's referring to is a foreach loop and as of php 5 it is possible, as documented in http://www.php.net/foreach -- Edit bug report at http://bugs.php.net/?id=34220&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34220&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34220&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34220&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34220&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34220&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34220&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34220&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34220&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34220&r=support Expected behavior: http://bugs.php.net/fix.php?id=34220&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34220&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34220&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34220&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34220&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34220&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34220&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34220&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34220&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34220&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34220&r=mysqlcfg