note 86051 added to function.is-subclass-of

From: Date: Wed, 01 Oct 2008 03:02:03 +0000
Subject: note 86051 added to function.is-subclass-of
Groups: php.notes 
Request: Send a blank email to php-notes+get-144924@lists.php.net to get a copy of this message
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

« previous php.notes (#144924) next »