PHP 4.0 Bug #7480: next(), end(), prev(), reset() etc. don't return references

From: Date: Thu, 26 Oct 2000 13:26:40 +0000
Subject: PHP 4.0 Bug #7480: next(), end(), prev(), reset() etc. don't return references
Groups: php.dev 
Request: Send a blank email to php-dev+get-36066@lists.php.net to get a copy of this message
From: mog@linux.nu 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

« previous php.dev (#36066) next »