ID:               44990
 Updated by:       [EMAIL PROTECTED]
 Reported By:      design at apostolstudio dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows XP
 PHP Version:      5.2.6
 New Comment:

use ===

'word' is converted to an integer for the comparison, and thus 0 == 0.

try this code:

if(array('word')===array(0)) echo "ERROR";


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

[2008-05-14 02:27:10] design at apostolstudio dot com

Description:
------------
array('word')==array(0) -- return true

Reproduce code:
---------------
if(array('word')==array(0)) echo "ERROR";

Actual result:
--------------
ERROR


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


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

Reply via email to