|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-10-12 16:16 UTC] 13353540 at qq dot com
-Status: Open
+Status: Closed
[2016-10-12 16:16 UTC] 13353540 at qq dot com
[2016-10-12 16:34 UTC] requinix@php.net
-Status: Closed
+Status: Duplicate
-Package: PHP Language Specification
+Package: *General Issues
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 28 11:00:01 2025 UTC |
Description: ------------ 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 1 Actual result: -------------- print 2