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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 16:01:33 2025 UTC