Edit report at https://bugs.php.net/bug.php?id=60531&edit=1

 ID:                 60531
 Updated by:         cataphr...@php.net
 Reported by:        onekamil at gmail dot com
 Summary:            Bug logical if
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Variables related
 Operating System:   debian 6.0
 PHP Version:        5.3SVN-2011-12-15 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, but this bug report is not intelligible.

If you think you can express the problem better, please submit a new bug 
report, this time following the instructions, namely including a short 
self-contained script than we can run and the expected and actual result of 
that script.

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2011-12-15 14:10:07] onekamil at gmail dot com

Description:
------------
Logical comparison if($var1==0 or $var2=='string') (FALSE or FALSE)=> TRUE, 
Secend 
FALSE is TRUE but $var2 is not 'string'




Test script:
---------------
http://screenshooter.net/3491371/bvnfexf
http://screenshooter.net/3491371/rgjtiaq

foreach($xml['photos']['photo'] as $keydupa=>$item) {
                        if(count($item)===0 or $keydupa=='binary_photo') {      
                
                                continue;
                        }
}



Expected result:
----------------
test

Actual result:
--------------
 test


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



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

Reply via email to