ID: 43859 Updated by: [EMAIL PROTECTED] Reported By: seocar at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Fedora Core PHP Version: 5.2.5 New Comment:
RTFM: http://www.php.net/manual/en/language.operators.comparison.php And there it says under the table: "If you compare two numerical strings, they are compared as integers." Previous Comments: ------------------------------------------------------------------------ [2008-01-15 20:27:28] seocar at gmail dot com Description: ------------ Wrong comparison between two strings. (Yes, I know about strict comparison, but I want to know about this case) Reproduce code: --------------- if ("0000" == "0e01") echo "BUG"; else echo "OK"; Expected result: ---------------- OK Actual result: -------------- BUG ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43859&edit=1
