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 <[EMAIL PROTECTED]> 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/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to