Edit report at http://bugs.php.net/bug.php?id=51515&edit=1
ID: 51515 Updated by: fel...@php.net Reported by: ianbara at imap dot cc Summary: Testing the equality of a string and an int can fails -Status: Open +Status: Bogus Type: Bug Package: Scripting Engine problem Operating System: Ubuntu Linux PHP Version: 5.3.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2010-04-08 23:22:52] ianbara at imap dot cc Description: ------------ The attached code prints out EQUALS for me. It should not do this. === Does work correctly however. Test script: --------------- <?php $old = "fca4ed9b761ca8ad209293248c2cdb56"; $new = 0; if ($old == $new) echo "EQUALS"; else echo "NOT EQUALS" ?> Expected result: ---------------- NOT EQUALS Actual result: -------------- EQUALS ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51515&edit=1