Edit report at https://bugs.php.net/bug.php?id=61776&edit=1
ID: 61776
Comment by: aestur at me dot com
Reported by: aestur at me dot com
Summary: $var = ''; var_dump(in_array($var, array(0,1)))//
boolean true
Status: Open
Type: Bug
Package: PHP options/info functions
Operating System: windows
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
the php version is 5.3.8 on windows seven
Previous Comments:
------------------------------------------------------------------------
[2012-04-19 17:59:20] aestur at me dot com
Description:
------------
$var = '';
var_dump(in_array($var, array(0,1)))// boolean true
Some weird cast is performed.
Test script:
---------------
$var = '';
var_dump(in_array($var, array(0,1)));
Expected result:
----------------
false
Actual result:
--------------
true
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61776&edit=1