note 86051 added to function.is-subclass-of

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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.
----
Server IP: 219.94.145.73
Probable Submitter: 58.5.213.146
----
Manual Page -- http://www.php.net/manual/en/function.is-subclass-of.php
Edit        -- https://master.php.net/note/edit/86051
Del: integrated  -- https://master.php.net/note/delete/86051/integrated
Del: useless     -- https://master.php.net/note/delete/86051/useless
Del: bad code    -- https://master.php.net/note/delete/86051/bad+code
Del: spam        -- https://master.php.net/note/delete/86051/spam
Del: non-english -- https://master.php.net/note/delete/86051/non-english
Del: in docs     -- https://master.php.net/note/delete/86051/in+docs
Del: other reasons-- https://master.php.net/note/delete/86051
Reject      -- https://master.php.net/note/reject/86051
Search      -- https://master.php.net/manage/user-notes.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.