Bug #73304 [Csd->Dup]: php ver 7.0.4,5.6.8
| From: | requinix@php.net | Date: | Wed, 12 Oct 2016 16:34:08 +0000 |
| Subject: | Bug #73304 [Csd->Dup]: php ver 7.0.4,5.6.8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204643@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73304&edit=1
ID: 73304
Updated by: requinix@php.net
Reported by: 13353540 at qq dot com
Summary: php ver 7.0.4,5.6.8
-Status: Closed
+Status: Duplicate
Type: Bug
-Package: PHP Language Specification
+Package: *General Issues
Operating System: centos6,7
PHP Version: 7.0.11
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-10-12 16:16:48] 13353540 at qq dot com
new bug description Bug #73306
------------------------------------------------------------------------
[2016-10-12 16:05:41] 13353540 at qq dot com
Description:
------------
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 1
Actual result:
--------------
print 2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73304&edit=1