note 107181 added to function.is-a
| From: | eitan at mosenkis dot net | Date: | Thu, 12 Jan 2012 21:09:27 +0000 |
| Subject: | note 107181 added to function.is-a | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185621@lists.php.net to get a copy of this message | ||
As of PHP 5.3.9, is_a() seems to return false when passed a string for the first argument. Instead,
use is_subclass_of() and, if necessary for your purposes, also check if the two arguments are equal,
since is_subclass_of('foo', 'foo') will return false, while
is_a('foo', 'foo') used to return true.
----
Server IP: 208.69.120.55
Probable Submitter: 74.104.45.177
----
Manual Page -- http://www.php.net/manual/en/function.is-a.php
Edit -- https://master.php.net/note/edit/107181
Del: integrated -- https://master.php.net/note/delete/107181/integrated
Del: useless -- https://master.php.net/note/delete/107181/useless
Del: bad code -- https://master.php.net/note/delete/107181/bad+code
Del: spam -- https://master.php.net/note/delete/107181/spam
Del: non-english -- https://master.php.net/note/delete/107181/non-english
Del: in docs -- https://master.php.net/note/delete/107181/in+docs
Del: other reasons-- https://master.php.net/note/delete/107181
Reject -- https://master.php.net/note/reject/107181
Search -- https://master.php.net/manage/user-notes.php