Bug #73305 [Csd->Dup]: php ver 7.0.4,5.6.8

From: Date: Wed, 12 Oct 2016 16:34:16 +0000
Subject: Bug #73305 [Csd->Dup]: php ver 7.0.4,5.6.8
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204644@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73305&edit=1 ID: 73305 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:17:22] 13353540 at qq dot com new bug description Bug #73306 ------------------------------------------------------------------------ [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

« previous php.bugs (#204644) next »