|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-02-25 23:10 UTC] zeev at cvs dot php dot net
[2000-02-25 23:10 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 21:00:01 2025 UTC |
I found this misbehaviour in several versions (3.0.12, 4b1 through 4b4): if ("inf" == "inf") { print "OK"; } if ("inf" != "inf") { print "BUG"; } Comparing the string "inf" with itself (either literal or by variables) returns false, and vice versa comparing with "!=" true. So far, "inf" is the only string with that misbehaviour I've detected.