#44676 [Opn->Bgs]: instanceof operator is case insensitive
| From: | colder@php.net | Date: | Wed, 09 Apr 2008 07:35:01 +0000 |
| Subject: | #44676 [Opn->Bgs]: instanceof operator is case insensitive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124103@lists.php.net to get a copy of this message | ||
ID: 44676
Updated by: colder@php.net
Reported By: ctx2002 at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Mac ox 10.5
PHP Version: 5.2.5
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
PHP is not case sensitive about classes names.
class foo{}
$a = new FOO();
Previous Comments:
------------------------------------------------------------------------
[2008-04-09 04:23:55] ctx2002 at gmail dot com
Description:
------------
PHP is a case sensitive language, but instanceOf is case insensitive.
actual php version is 5.2.4, but there is not such version number in
drop down list
Reproduce code:
---------------
<?php
class test
{}
$t = new test();
$r = $t instanceOf TEST;
var_dump($r);
?>
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44676&edit=1