Bug #52364 [Opn->Bgs]: 0=="*" returns true
| From: | aharvey@php.net | Date: | Fri, 16 Jul 2010 17:41:49 +0000 |
| Subject: | Bug #52364 [Opn->Bgs]: 0=="*" returns true | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152485@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52364&edit=1
ID: 52364
Updated by: aharvey@php.net
Reported by: nickle799 at gmail dot com
Summary: 0=="*" returns true
-Status: Open
+Status: Bogus
Type: Bug
Package: *General Issues
Operating System: Debian 5.0
PHP Version: 5.3.2
New Comment:
This is expected behaviour, and is well documented across the manual,
most notably on the type comparison page at
http://au2.php.net/manual/en/types.comparisons.php
Not a bug -> closing.
Previous Comments:
------------------------------------------------------------------------
[2010-07-16 19:38:05] nickle799 at gmail dot com
Description:
------------
I am not sure if this is a feature or a bug, but 0=="*" returns true.
Is there a reason for this?
Test script:
---------------
<?php
if(0=="*") echo "This shouldn't echo";
?>
Actual result:
--------------
This shouldn't echo
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52364&edit=1