Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPcache API is restricted by "restrict_api" #986

Open
Soonz opened this issue Jul 27, 2023 · 4 comments
Open

OPcache API is restricted by "restrict_api" #986

Soonz opened this issue Jul 27, 2023 · 4 comments

Comments

@Soonz
Copy link

Soonz commented Jul 27, 2023

Hi,

I recently encoutered an error that I managed to fix, it happens in the BundlesConfigurator.php file at line 121 :

opcache_invalidate($file);

I couldn't run anything with it this way, I always had the error :

Warning: Zend OPcache API is restricted by "restrict_api"

I changed the line by @opcache_invalidate($file); and it worked fine.

Would have like to submit this as a definitive fix but it might be related to my hosting system.

This happened on a OVH hosting with PHP 8.1

Thanks.

@nicolas-grekas
Copy link
Member

please send a PR

@Soonz
Copy link
Author

Soonz commented Jul 27, 2023

I wanted to but I can't.

My "Create pull request" button is grayed out for some reason.

xcwxc69wxcwx9cxw9

I'm not familiar with GitHub, sorry.

@Soonz
Copy link
Author

Soonz commented Jul 27, 2023

What I find odd is, why a warning stops the execution of the code ? The only thing I'm doing here is ignoring warnings.

This happened during the installation of EasyAdminBundle and completely stopped the process.

@lyrixx
Copy link
Member

lyrixx commented Jul 27, 2023

My "Create pull request" button is grayed out for some reason.

You need to choose another branch, just above the big yellow banner

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants