|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-09-14 18:20 UTC] geoffphillips at hotmail dot com
setup:
standard php4 install from suse linux 6.4 cd edition
bug:
all strings compared for equality with zero, evaluates to true
e.g.
if ("abcd" == 0")
print "hello";
always prints "hello"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jul 03 06:00:01 2026 UTC |
setup: standard php4 install from suse linux 6.4 cd edition bug: all strings compared for equality with zero, evaluates to true e.g. if ("abcd" == 0) print "hello"; always prints "hello"