|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-02 07:03 UTC] rasmus@php.net
-Status: Open
+Status: Not a bug
[2012-08-02 07:03 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
Description: ------------ comparision of integer 0 and any string always returns true the problem is independent from operands order. Test script: --------------- <?php // the following code returns true var_dump(('hello world' == 0)); // the same thing var_dump((0 == 'hello world')); Expected result: ---------------- I think it has to return false, matching inequal variables