Re: [SMARTY-DEV] Smarty 2.6.7 bug in foreach

From: Date: Thu, 24 Feb 2005 04:22:27 +0000
Subject: Re: [SMARTY-DEV] Smarty 2.6.7 bug in foreach
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2646@lists.php.net to get a copy of this message
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

« previous php.smarty.dev (#2646) next »