It would appear that is_subclass_of is case insensitive unlike get_class in php5.
i.e.
<?php
class fooBar {}
class bar extends fooBar {}
assert(get_class(new fooBar()) == "fooBar");
assert(is_subclass_of(new bar(), "foobar") == true);
?>
i run across this while migrating some code from php4 to php5 and the code would only half-the-time break.
--was--
It would appear that is_subclass_of is case insensitive unlike get_class in php5.
i.e.
class fooBar {}
class bar extends fooBar {}
assert(get_class(new fooBar()) == "fooBar")
assert(is_subclass_of(new bar(), "foobar") == true)
i run across this while migrating some code from php4 to php5 and the code would only half-the-time break.
http://php.net/manual/en/function.is-subclass-of.php
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.