ID: 26071
Updated by: [email][/email]
Reported By: flood87 at hot dot ee
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows XP
PHP Version: 5.0.0b1 (beta1)
New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the doentation available at
[url][/url] and the instructions on how to report
a bug at [url][/url]

Use ===

Previous Comments:

[2003-11-01 15:10:52] flood87 at hot dot ee

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";

Expected result:

Actual result:


Edit this bug report at [url][/url]