Bug #80519 [Com]: Invalid opcode.

From: Date: Mon, 08 Mar 2021 05:13:41 +0000
Subject: Bug #80519 [Com]: Invalid opcode.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232614@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80519&edit=1 ID: 80519 Comment by: tyler at tylercorsair dot com Reported by: shafer_w2002 at yahoo dot com Summary: Invalid opcode. Status: Closed Type: Bug Package: opcache Operating System: Ubuntu PHP Version: 8.0.0 Assigned To: nikic Block user comment: N Private report: N New Comment: This issue is still present in 8.0.3 when utilizing the same package as the original bug report (Laravel OAuth Passport). I have had to set the value of opcache.optimization_level to "0" to resolve it. Previous Comments: ------------------------------------------------------------------------ [2020-12-15 19:11:07] nikic@php.net This is a known bug in PHP 8.0.0 and will be fixed in the upcoming 8.0.1 release. You can use opcache.optimization_level=0 as a temporary workaround. ------------------------------------------------------------------------ [2020-12-15 17:50:47] shafer_w2002 at yahoo dot com Description: ------------ When running package "defuse/php-encryption" version 2.2.1, I get the error "Invalid opcode 117/2/0. at [snip]/vendor/defuse/php-encryption/src/Core.php:412" Changing the lines of code "\in_array()" to "in_array()" in defuse/php-encryption/src/Core.php and the error goes away. Test script: --------------- This package is part of Laravel's Oauth server Passport. Installing this and trying to auth using the PHP 8 Dockers image you will see the error. Expected result: ---------------- No error ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80519&edit=1

« previous php.bugs (#232614) next »