foreach tag and objects

Boris Bezrukov <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
Hello.
Smarty does use (array)$from syntax within compiled {foreach} tag. I 
suppose that was introduced to avoid errors with $from in scalar data 
types? Is indeed comfortable for PHP4, but PHP5 had introduced 
iterators, so objects can now be used within foreach construct either. 
How do you think if it should be removed? Yep, it can be replaced with 
something like if(!is_object), but should it?

Patch removing them attached.

Thank you.

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.