[PHP-BUG] Bug #73305 [NEW]: php ver 7.0.4,5.6.8

[email protected] ("13353540 at qq dot com") Wed, 12 Oct 2016 16:09:41 GMT
Newsgroups php.standards
Message-ID <[email protected]>
From:             13353540 at qq dot com
Operating system: centos6,7
PHP version:      7.0.11
Package:          PHP Language Specification
Bug Type:         Bug
Bug description:php ver 7.0.4,5.6.8

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 bug report at https://bugs.php.net/bug.php?id=73305&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=73305&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=73305&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=73305&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=73305&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=73305&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=73305&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=73305&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=73305&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=73305&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=73305&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=73305&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=73305&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=73305&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73305&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=73305&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=73305&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=73305&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73305&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=73305&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=73305&r=mysqlcfg