Re: [SMARTY-DEV] RE: [SMARTY] php5 Iterators.
| From: | George Miroshnikov | Date: | Wed, 19 Jan 2005 19:12:07 +0000 |
| Subject: | Re: [SMARTY-DEV] RE: [SMARTY] php5 Iterators. | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2615@lists.php.net to get a copy of this message | ||
Hello Boris,
Wednesday, January 19, 2005, 9:03:33 PM, you wrote:
BB> boots wrote:
>>FWIW, is_a is not available prior to PHP 4.2 so we would actually need
>>to implement it. The Pear compat library has what appears to be an
>>adequate BC implementation:
>>http://cvs.php.net/co.php/pear/PHP_Compat/Compat/Function/is_a.php?r=1.15
>>
>>
>>
BB> In fact we can just use function_exists.
Or use version_compare() to test for PHP5+.
Undefined functions raises no errors as long as it's not called, AFAIR.
>>I can see why people want to overload foreach for object support under
>>PHP5
>>
>>but I wonder if it might be a better idea to introduce a new tag
>>(say, forevery or onevery or something) even if just to keep the amount
>>of BC headaches and pitfalls to a minimum.
>>
>>
>>
BB> -1.
-1 from me too.
IMO this will be too confusing.