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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 27 21:01:29 2024 UTC