|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesVusalPatch (last revision 2014-12-24 22:31 UTC by vusalhaqverdiyev at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-12-26 00:40 UTC] php at mcq8 dot be
[2014-12-26 05:22 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-12-26 05:22 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 22:00:02 2026 UTC |
Description: ------------ $a = 0; if($a == "test"){ echo "FALSE RESULT"; } else{ echo "TRUE RESULT"; } In this code snippet, $a = 0, and the "if" must not launch. But "if" is launched. Test script: --------------- $a = 0; if($a == "test"){ echo "FALSE RESULT"; } else{ echo "TRUE RESULT"; } In this code snippet, $a = 0, and the "if" must not launch. But "if" is launched. Expected result: ---------------- $a = 0; if($a == "test"){ echo "FALSE RESULT"; } else{ echo "TRUE RESULT"; } In this code result must be "True result" Actual result: -------------- $a = 0; if($a == "test"){ echo "FALSE RESULT"; } else{ echo "TRUE RESULT"; } In this code result must be "True result"