#42963 [Opn->Bgs]: Look this code! The variable is casting wrong?

From: Date: Sun, 14 Oct 2007 19:36:42 +0000
Subject: #42963 [Opn->Bgs]: Look this code! The variable is casting wrong?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118525@lists.php.net to get a copy of this message
 ID:               42963
 Updated by:       johannes@php.net
 Reported By:      webcreator at email dot it
-Status:           Open
+Status:           Bogus
 Bug Type:         Variables related
 Operating System: ubuntu 7.10
 PHP Version:      5.2.4
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

.


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

[2007-10-14 19:31:25] webcreator at email dot it

Description:
------------
See the code is very simple...the casting for 0 is wrong

Reproduce code:
---------------
<?php
$pino = 0;
if($pino == "uno")
{
echo "sono uguali";
}
else
{
echo "non sono uguali";
}
?>

Expected result:
----------------
non sono uguali

Actual result:
--------------
sono uguali


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


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


Thread (2 messages)

« previous php.bugs (#118525) next »