Bug #73308 [Opn->Spm]: php ver 7.0.4,5.6.8
| From: | nikic@php.net | Date: | Wed, 12 Oct 2016 17:11:40 +0000 |
| Subject: | Bug #73308 [Opn->Spm]: php ver 7.0.4,5.6.8 | ||
| References: | 1 | Groups: | php.standards |
| Request: | Send a blank email to standards-+get-1139@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73308&edit=1
ID: 73308
Updated by: nikic@php.net
Reported by: 13353540 at qq dot com
Summary: php ver 7.0.4,5.6.8
-Status: Open
+Status: Spam
Type: Bug
Package: PHP Language Specification
Operating System: centos6,7
PHP Version: 7.0.11
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-10-12 17:08:22] 13353540 at qq dot com
Description:
------------
I'm sorry.Bug #73304,#73305,#73306 is wrong.
Hello,
It is a sample script.I think the script will be print 2,but 1.
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 2.
I tested this script in version 7.0.4,5.6.8ï¼have the same problem
Regards,
Jian Zhao
Test script:
---------------
<?
error_reporting(E_ERROR);
$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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73308&edit=1