|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-10-05 03:23 UTC] ellyx at dewata-production dot com
[2012-10-05 03:23 UTC] ellyx at dewata-production dot com
-PHP Version: 5.3.17
+PHP Version: 5.3.7
[2012-10-05 03:48 UTC] pierrick@php.net
-Status: Open
+Status: Not a bug
[2012-10-05 03:48 UTC] pierrick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 02:00:02 2025 UTC |
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'