[dev] [commits] Horde-Hatchery branch master updated. 440b7d713281cb240060d754a31bae71484de823

Jan Schneider jan at horde.org
Tue Jul 28 20:31:32 UTC 2009


Zitat von Michael M Slusarz <slusarz at horde.org>:

> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von Michael M Slusarz <slusarz at horde.org>:
>>
>>> commit 488c875b979520b1c9b6bf46049a0ddbb8fd8158
>>> Author: Michael M Slusarz <slusarz at curecanti.org>
>>> Date:   Mon Jul 27 12:20:53 2009 -0600
>>>
>>>   No more is_a() -> use instanceof instead
>>
>> Since is_a() is undeprecated and has the advantage of not  
>> triggering autoloading, we should consider to keep using it.
>
> Actually, the autoloading comment is not correct, at least as of PHP  
> 5.2.  From the PHP instanceof page:
>
> ---
>
> There are a few pitfalls to be aware of. Before PHP version 5.1.0,  
> instanceof would call __autoload() if the class name did not exist.  
> In addition, if the class was not loaded, a fatal error would occur...

Ah, I didn't know that. Well, I'm fine with instanceof then.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/dev/attachments/20090728/75aa8262/attachment.bin>


More information about the dev mailing list