note 58447 deleted from function.next by betz
| From: | betz@php.net | Date: | Fri, 04 Nov 2005 14:52:18 +0000 |
| Subject: | note 58447 deleted from function.next by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98073@lists.php.net to get a copy of this message | ||
Note Submitter: argh at thatsuc dot ks
Reason: useless
----
It appears to me that as of PHP 4.4.1 the next() function doesn't work anymore when the array
is a reference.
This example would cause an infinite loop on 4.4.1.
function example(&$array) {
reset($array);
while($k = key($array)) {
next($array);
}
}
just how many of these reference related 'feature changes' are there? i mean, this is
pretty lame if you ask me..