Skip to content

OPcache API is restricted by "restrict_api" #986

Closed
@Soonz

Description

@Soonz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions