Bug #79498 [NEW]: zend_compile_assign

From: Date: Mon, 20 Apr 2020 03:00:22 +0000
Subject: Bug #79498 [NEW]: zend_compile_assign
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226675@lists.php.net to get a copy of this message
From: maple_ at outlook dot com Operating system: linux PHP version: master-Git-2020-04-20 (Git) Package: *Compile Issues Bug Type: Bug Bug description:zend_compile_assign Description: ------------ The following two pieces of code have the same output. i want to know is that the correct feature of php or something? Test script: --------------- $b=1; $a=array(1=>"maple"); $a[$b+1]=$b=2; var_dump($a); $b=1; $a=array(1=>"maple"); $a[$b]=$b=2; var_dump($a); Expected result: ---------------- array(2) { [1]=> string(5) "maple" [3]=> int(2) } array(2) { [1]=> string(5) "maple" [2]=> int(2) } Actual result: -------------- array(2) { [1]=> string(5) "maple" [2]=> int(2) } array(2) { [1]=> string(5) "maple" [2]=> int(2) } -- Edit bug report at https://bugs.php.net/bug.php?id=79498&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79498&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79498&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79498&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79498&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79498&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79498&r=support Expected behavior: https://bugs.php.net/fix.php?id=79498&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79498&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79498&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79498&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79498&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79498&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79498&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79498&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79498&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79498&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79498&r=mysqlcfg

« previous php.bugs (#226675) next »