[PHP-DEV] PHP 4.0 Bug #7480: next(), end(), prev(), reset() etc. don't return references From: mog <email protected>
Date: 10/26/00

From: mog <email protected>
Operating system: RedHat Linux 7.0
PHP version: 4.0.1pl2
PHP Bug Type: Feature/Change Request
Bug description: next(), end(), prev(), reset() etc. don't return references

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 Bug report at: http://bugs.php.net/?id=7480&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>