[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-dev
Subject:    Re: [SMARTY-DEV] Smarty 2.6.7 bug in foreach
From:       Sean Coates <sean () caedmon ! net>
Date:       2005-02-24 4:22:27
Message-ID: 421D5683.4050903 () caedmon ! net
[Download RAW message or body]

Hendy Irawan wrote:
> I'm using Smarty 2.6.7 and it seems that it has a "bug". The foreach
> built-in function converts the "from" to an array before foreach-ing,
> while it works for many cases it doesn't work for objects supporting the
> new Iterator interface in PHP 5.

As always, when posting to a mailing list (especially one populated by 
developers), take a few minutes to search the archives 
(http://news.php.net/php.smarty.dev).

The thread you're looking for is called "php5 Iterators".

S

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic