Edit report at https://bugs.php.net/bug.php?id=63220&edit=1
ID: 63220 User updated by: ellyx at dewata-production dot com Reported by: ellyx at dewata-production dot com Summary: Camparison Operator Status: Open Type: Bug Package: *General Issues Operating System: Opensuse 12.1 -PHP Version: 5.3.17 +PHP Version: 5.3.7 Block user comment: N Private report: N New Comment: I think it not just the comparison with string 'ids', i think this happen in every string end with 'ids' for example var_dump(0 == 'testIds'); Expected: false Actual: true Previous Comments: ------------------------------------------------------------------------ [2012-10-05 03:16:38] ellyx at dewata-production dot com Description: ------------ I think there is a bug in comparison operator, when i compare 0 with string 'ids' it return true, it should be return false Test script: --------------- var_dump(0 == 'ids') if(0 == 'ids'){ echo 'true'; } $str = 'ids'; if(0 == $str){ echo 'test'; } Expected result: ---------------- false Actual result: -------------- true 'true' 'test' ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63220&edit=1