Bug #73663 [NEW]: "Invalid opcode 65/16/8" occurs with a variable created with list();

From: Date: Tue, 06 Dec 2016 03:34:58 +0000
Subject: Bug #73663 [NEW]: "Invalid opcode 65/16/8" occurs with a variable created with list();
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205791@lists.php.net to get a copy of this message
From: naoki-kawamukai at cybozu dot co dot jp Operating system: CentOS 7.2.1511 PHP version: 7.1.0 Package: Scripting Engine problem Bug Type: Bug Bug description:"Invalid opcode 65/16/8" occurs with a variable created with list(); Description: ------------ "Invalid opcode 65/16/8" occurs with a variable created with list(). print_r() has same error. ref. https://3v4l.org/U3Qnl This error occurs on PHP 7.0.13. But it does not occur on PHP 5.6.28. Test script: --------------- <?php var_dump(list($val) = [1]); // OK $array = [1]; var_dump(list($val) = $array); // NG: Invalid opcode Expected result: ---------------- [vagrant@localhost ~]$ php test.php /home/vagrant/test.php:2: array(1) { [0] => int(1) } /home/vagrant/test.php:5: array(1) { [0] => int(1) } Actual result: -------------- [vagrant@localhost ~]$ php test.php /home/vagrant/test.php:2: array(1) { [0] => int(1) } PHP Fatal error: Invalid opcode 65/16/8. in /home/vagrant/test.php on line 5 PHP Stack trace: PHP 1. {main}() /home/vagrant/test.php:0 -- Edit bug report at https://bugs.php.net/bug.php?id=73663&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73663&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73663&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73663&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73663&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73663&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73663&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73663&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73663&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73663&r=support Expected behavior: https://bugs.php.net/fix.php?id=73663&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73663&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73663&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73663&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73663&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73663&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73663&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73663&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73663&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73663&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73663&r=mysqlcfg

« previous php.bugs (#205791) next »