Bug #73306 [Com]: php ver 7.0.4,5.6.8

From: Date: Wed, 12 Oct 2016 17:13:44 +0000
Subject: Bug #73306 [Com]: php ver 7.0.4,5.6.8
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204647@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73306&edit=1 ID: 73306 Comment by: 13353540 at qq dot com Reported by: 13353540 at qq dot com Summary: php ver 7.0.4,5.6.8 Status: Not a bug Type: Bug Package: *General Issues Operating System: centos6,7 PHP Version: 7.0.11 Block user comment: N Private report: N New Comment: requinix@php.net, 1. Set error_reporting=-1 and display_errors=on in php.ini and you will see multiple warnings about your code. multiple warnings do not affect the results. 2. Count your equals signs. I am sorry , Bug #73306 is wrong ,i renew the report to #73308 I think it is must be a bug. Previous Comments: ------------------------------------------------------------------------ [2016-10-12 17:13:43] 13353540 at qq dot com Related To: Bug #73306 ------------------------------------------------------------------------ [2016-10-12 16:36:26] requinix@php.net 1. Set error_reporting=-1 and display_errors=on in php.ini and you will see multiple warnings about your code. 2. Count your equals signs. ------------------------------------------------------------------------ [2016-10-12 16:17:22] 13353540 at qq dot com Related To: Bug #73305 ------------------------------------------------------------------------ [2016-10-12 16:16:48] 13353540 at qq dot com Related To: Bug #73304 ------------------------------------------------------------------------ [2016-10-12 16:12:57] 13353540 at qq dot com Description: ------------ I'm sorry.Bug #73304,#73305 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 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=73306&edit=1

« previous php.bugs (#204647) next »