Bug #73304 [NEW]: php ver 7.0.4,5.6.8

From: Date: Wed, 12 Oct 2016 16:05:42 +0000
Subject: Bug #73304 [NEW]: php ver 7.0.4,5.6.8
Groups: php.standards 
Request: Send a blank email to standards-+get-1133@lists.php.net to get a copy of this message
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: ------------ 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 -- Edit bug report at https://bugs.php.net/bug.php?id=73304&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73304&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73304&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73304&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73304&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73304&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73304&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73304&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73304&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73304&r=support Expected behavior: https://bugs.php.net/fix.php?id=73304&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73304&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73304&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73304&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73304&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73304&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73304&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73304&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73304&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73304&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73304&r=mysqlcfg

« previous php.standards (#1133) next »