|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
20 + 42 = ?
Subscribe to this entry?

 [2020-12-15 17:50 UTC] shafer_w2002 at yahoo dot com
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-12-15 19:11 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2020-12-15 19:11 UTC]
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: Wed Apr 17 23:01:27 2024 UTC