Re: [SMARTY-DEV] RE: [SMARTY] php5 Iterators.

[email protected] (George Miroshnikov)
Newsgroups php.smarty.dev
Organization Infinity Creative Group
Message-ID <[email protected]>
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.
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.