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

From: Date: Tue, 06 Dec 2016 09:33:42 +0000
Subject: Bug #73663 [Opn->Csd]: "Invalid opcode 65/16/8" occurs with a variable created with list();
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205800@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73663&edit=1 ID: 73663 Updated by: laruence@php.net Reported by: naoki-kawamukai at cybozu dot co dot jp Summary: "Invalid opcode 65/16/8" occurs with a variable created with list(); -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem Operating System: CentOS 7.2.1511 PHP Version: 7.1.0 Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=358bd77b2360e31324b7d79fc1edf6d45499c68c Log: Fixed bug #73663 (&quot;Invalid opcode 65/16/8&quot; occurs with a variable created with list()) Previous Comments: ------------------------------------------------------------------------ [2016-12-06 03:34:56] naoki-kawamukai at cybozu dot co dot jp 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 this bug report at https://bugs.php.net/bug.php?id=73663&edit=1

« previous php.bugs (#205800) next »