From: flood87 at hot dot ee
Operating system: Windows XP
PHP version: 5.0.0b1 (beta1)
PHP Bug Type: Unknown/Other Function
Bug description: Number 0 is equal to any string.

Description:
------------
The bug takes place in versions of php from 4 to 5. Because of some
reasons number 0 is equated with any string. The equal operator (==) is
used. The problem is well illustrated with the "Reproduce code".

Reproduce code:
---------------
$i = 0;
$b = $i == "str";
var_dump($b);

Expected result:
----------------
bool(false)

Actual result:
--------------
bool(true)

--
Edit bug report at [url]http://bugs.php.net/?id=26071&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26071&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26071&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26071&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26071&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26071&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26071&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26071&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26071&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26071&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26071&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26071&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26071&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26071&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26071&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26071&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26071&r=float[/url]