note 105684 added to function.is-a
| From: | AronBudinszky at osu1 dot php dot net | Date: | Wed, 07 Sep 2011 11:21:55 +0000 |
| Subject: | note 105684 added to function.is-a | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183000@lists.php.net to get a copy of this message | ||
Be careful! Starting in PHP 5.3.7 the behavior of is_a() has changed slightly: when calling is_a()
with a first argument that is not an object, __autoload() is triggered!
In practice, this means that calling is_a('23', 'User'); will trigger
__autoload() on "23". Previously, the above statement simply returned 'false'.
More info can be found here:
https://bugs.php.net/bug.php?id=55475
Whether this change is considered a bug and whether it will be reverted or kept in future versions
is yet to be determined, but nevertheless it is how it is, for now...
----
Server IP: 69.147.83.197
Probable Submitter: 46.107.210.136
----
Manual Page -- http://www.php.net/manual/en/function.is-a.php
Edit -- https://master.php.net/note/edit/105684
Del: integrated -- https://master.php.net/note/delete/105684/integrated
Del: useless -- https://master.php.net/note/delete/105684/useless
Del: bad code -- https://master.php.net/note/delete/105684/bad+code
Del: spam -- https://master.php.net/note/delete/105684/spam
Del: non-english -- https://master.php.net/note/delete/105684/non-english
Del: in docs -- https://master.php.net/note/delete/105684/in+docs
Del: other reasons-- https://master.php.net/note/delete/105684
Reject -- https://master.php.net/note/reject/105684
Search -- https://master.php.net/manage/user-notes.php