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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 02:01:28 2024 UTC