Re: WARNING: get_class() is case-sensitive in PHP 5

From: Date: Thu, 15 Jan 2004 12:47:25 +0000
Subject: Re: WARNING: get_class() is case-sensitive in PHP 5
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25078@lists.php.net to get a copy of this message
Klaus Guenther wrote:
But to restate Paul's question... will this work? if (is_subclass_of($object, "pear")) echo "blah"; Yes. From my experience these all work:
is_a($object, "pear") ($object instanceof PeAr) } catch (PeAREXception $e) { .. } .... etc. So, as Greg said it's only the methods that return a classname that will behave differently. (And similarly, methods like get_classs_methods() will now return case-sensitive method names). Hans

« previous php.pear.dev (#25078) next »