php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73305 php ver 7.0.4,5.6.8
Submitted: 2016-10-12 16:09 UTC Modified: 2016-10-12 16:34 UTC
From: 13353540 at qq dot com Assigned:
Status: Duplicate Package: *General Issues
PHP Version: 7.0.11 OS: centos6,7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: 13353540 at qq dot com
New email:
PHP Version: OS:

 

 [2016-10-12 16:09 UTC] 13353540 at qq dot com
Description:
------------
Bug #73304 is wrong.
Hello,
    It is a sample script.I think the script will be print 1,but 2.
If I change:
  if($ret_obj->result==false && $ret_obj->code=99 ) 
to:
   if($ret_obj->result=="aa"&& $ret_obj->code=99 )

It's  print 1.

I tested this script in version 7.0.4,5.6.8,have the same problem

Regards,
Jian Zhao

Test script:
---------------
<?
$ret="";
$ret_obj=json_decode($ret);
if($ret_obj->result==false && $ret_obj->code=99 )
	echo 1;
else
	echo 2;
exit;
?>

Expected result:
----------------
print 2

Actual result:
--------------
print 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-12 16:17 UTC] 13353540 at qq dot com
-Status: Open +Status: Closed
 [2016-10-12 16:17 UTC] 13353540 at qq dot com
new bug description Bug #73306
 [2016-10-12 16:34 UTC] requinix@php.net
-Status: Closed +Status: Duplicate -Package: PHP Language Specification +Package: *General Issues
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 16:01:29 2024 UTC