Bug #60531 [Opn->Bgs]: Bug logical if

From: Date: Thu, 15 Dec 2011 14:51:43 +0000
Subject: Bug #60531 [Opn->Bgs]: Bug logical if
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165885@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60531&edit=1

 ID:                 60531
 Updated by:         cataphract@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


Thread (2 messages)

« previous php.bugs (#165885) next »