#44999 [Opn->Bgs]: 0 equals any string

From: Date: Wed, 14 May 2008 22:20:01 +0000
Subject: #44999 [Opn->Bgs]: 0 equals any string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125006@lists.php.net to get a copy of this message
 ID:               44999
 Updated by:       cellog@php.net
 Reported By:      ethan dot nelson at ltd dot org
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: windows 2003
 PHP Version:      5.2.6
 New Comment:

see Bug #44990 for explanation


Previous Comments:
------------------------------------------------------------------------

[2008-05-14 21:51:49] ethan dot nelson at ltd dot org

Description:
------------
Right now, 0 compared to any string will prove true.

Reproduce code:
---------------
<?php

if (0 == 'anystring') echo "True";
else echo "False";

?>

Expected result:
----------------
False

Actual result:
--------------
True


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44999&edit=1



Thread (9 messages)

« previous php.bugs (#125006) next »