foreach tag and objects

From: Date: Mon, 10 Jan 2005 16:57:45 +0000
Subject: foreach tag and objects
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2603@lists.php.net to get a copy of this message
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.

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