Hi Andi Gutmans, you wrote: > I don't mind undeprecating it while I continue to digest the whole > instanceof thread and look at real-world examples...
After all I think there's more hidden behind than just your argument about the generic way...? Why are you defending this broken bridge that hard? You're saying that PHP shouldn't be that dynamic regarding this issue, so why does it try do dynamically load a class within instanceof (which is needless *in every case* anyway)? I think PEAR qualifies as a "real-world" example and there is_a() is used about 680 times, now if that would be instanceof and we assume 10% to check for a non-existing class, it'd bail out at about 70 instances. Regards, -- Michael - < mike(@)php.net >
signature.asc
Description: OpenPGP digital signature