Bug #73305 [Opn->Csd]: php ver 7.0.4,5.6.8
[email protected] ("13353540 at qq dot com") Wed, 12 Oct 2016 16:17:22 GMT
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=73305&edit=1
ID: 73305
User updated by: 13353540 at qq dot com
Reported by: 13353540 at qq dot com
Summary: php ver 7.0.4,5.6.8
-Status: Open
+Status: Closed
Type: Bug
Package: PHP Language Specification
Operating System: centos6,7
PHP Version: 7.0.11
Block user comment: N
Private report: N
New Comment:
new bug description Bug #73306
Previous Comments:
------------------------------------------------------------------------
[2016-10-12 16:09:41] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73305&edit=1