|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-06 18:07 UTC] pajoye@php.net
-Status: Open
+Status: Bogus
[2010-12-06 18:07 UTC] pajoye@php.net
[2010-12-06 18:23 UTC] kherrera at codealchemy dot com
[2010-12-06 18:34 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
Description: ------------ When testing the expression of integer "0" (zero) equals "_" (underscore), the result of the expression is true, when it should be false. I could not select the proper PHP version number because it was not listed: C:>php -v PHP 5.3.2 (cli) (built: Mar 3 2010 20:36:54) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans Test script: --------------- <?php $index = 0; if ( $index == '_' ) echo "Bug found.\n"; else echo "No bug found.\n"; Expected result: ---------------- No bug found. Actual result: -------------- Bug found.