[dev] Re: [cvs] commit: framework/Notification/Notification Listener.php framework/Notification/Notification/Listener status.php

Chuck Hagenbuch chuck at horde.org
Mon Mar 22 12:40:38 PST 2004


Quoting Jon Parise <jon at horde.org>:

> In that case, how about using method_exists($ob, 'getMessage')?  I
> don't know if there's much of a performance penalty compared to
> is_a(), but it's probably negligible.

Looks like the method_exists check is in fact much faster - test script
attached. I've made the change in CVS.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: obtest.php
Type: application/x-php
Size: 916 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040322/0dd04db4/obtest.bin


More information about the dev mailing list