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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC