php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80519 Invalid opcode.
Submitted: 2020-12-15 17:50 UTC Modified: 2020-12-15 19:11 UTC
From: shafer_w2002 at yahoo dot com Assigned: nikic (profile)
Status: Closed Package: opcache
PHP Version: 8.0.0 OS: Ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shafer_w2002 at yahoo dot com
New email:
PHP Version: OS:

 

 [2020-12-15 17:50 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-12-15 19:11 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2020-12-15 19:11 UTC] 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.
 [2021-03-08 05:13 UTC] tyler at tylercorsair dot com
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.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 20:03:34 2021 UTC