Re: array functions next, current, prev applied to objects in php 5.3.

From: Date: Tue, 04 Dec 2007 14:07:38 +0000
Subject: Re: array functions next, current, prev applied to objects in php 5.3.
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-33637@lists.php.net to get a copy of this message
the only documented way to iterate over properties is using "foreach" http://www.php.net/manual/en/language.oop5.iterations.php Does that one still work? On 12/4/07, robert nicholson <nicholsr@php.net> wrote: > I raised bug http://bugs.php.net/bug.php?id=43480 noting that > the behaviour > of the array functions next, current, prev had been changed in 5.3. > Previously (5.2 and before) it was possible to use these as a crude iterator > over object properties. In 5.3 this behaviour has been removed. > > The bug has been closed as bogus so it seems that 5.3 will behave > differently in this regard to 5.2. It seems likely to me that there will be > at least one application "out there" that needs to be fixed to take this > into account. > > My question: Is there a list being kept of "things you might need to fix in > your application in order to move to 5.3" and should this be added? > -- Alexey Zakhlestin http://blog.milkfarmsoft.com/

« previous php.internals (#33637) next »