foreach tag and objects

[email protected] (Boris Bezrukov)
Newsgroups php.smarty.dev
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.
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.