ID: 7480 Updated by: jan Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: RedHat Linux 7.0 PHP Version: 4.0.1pl2 New Comment:
dupe of 7578. Previous Comments: ------------------------------------------------------------------------ [2000-10-26 09:26:40] [EMAIL PROTECTED] next(), end(), prev(), reset() etc. don't return references meaning this example code won't work as it's thought to do: <?PHP $array1 = array('element1','element2'); $array2 = array(&$array1); next(current($array2)); // here the internal pointer is changed in the copy of array1 that is returned and is in not referenced to to the real $array1 as it should current(current($array2)); // should return "element2" ?> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=7480&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]