Bug #65062 [Opn->Nab]: == operator problem on 0 and string
| From: | ab@php.net | Date: | Wed, 19 Jun 2013 13:38:31 +0000 |
| Subject: | Bug #65062 [Opn->Nab]: == operator problem on 0 and string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179629@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65062&edit=1
ID: 65062
Updated by: ab@php.net
Reported by: phoenixsnake at hotmail dot com
Summary: == operator problem on 0 and string
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Windows 7
PHP Version: 5.3.26
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Please read the docs http://php.net/manual/en/language.types.type-juggling.php
Previous Comments:
------------------------------------------------------------------------
[2013-06-19 11:54:24] phoenixsnake at hotmail dot com
Description:
------------
problem occur when compare string with 0
Test script:
---------------
var_dump( 0 == "something" );
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65062&edit=1