#26162 [Opn->Bgs]: $a="0abcdefg";if ($a==0) echo "OK"; result is "OK" ?!
ID: 26162
Updated by: didou@php.net
Reported By: zhuminglun at yahoo dot com dot cn
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: linux/win2000
PHP Version: 4.3.4
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
use === to compare
Previous Comments:
------------------------------------------------------------------------
[2003-11-07 06:35:44] zhuminglun at yahoo dot com dot cn
Description:
------------
$a="0abcdefg";
if ($a==0) echo "OK";
result is "OK" ?!
Reproduce code:
---------------
$a="0abcdefg";
if ($a==0) echo "OK";
Expected result:
----------------
Nothing output
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26162&edit=1
Thread (2 messages)