php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60531 Bug logical if
Submitted: 2011-12-15 14:10 UTC Modified: 2011-12-15 14:51 UTC
From: onekamil at gmail dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 5.3SVN-2011-12-15 (SVN) OS: debian 6.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: onekamil at gmail dot com
New email:
PHP Version: OS:

 

 [2011-12-15 14:10 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-15 14:51 UTC] cataphract@php.net
-Status: Open +Status: Bogus
 [2011-12-15 14:51 UTC] cataphract@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC