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

avoid opcache_invalidate to result in ErrorException #244

Closed
wants to merge 2 commits into from
Closed

avoid opcache_invalidate to result in ErrorException #244

wants to merge 2 commits into from

Conversation

vavrecan
Copy link

calling opcache_invalidate will result in ErrorException (Zend OPcache API is restricted by "restrict_api") if opcache.restrict_api is not empty and script is used outside of allowed path. I suggest that there is check which makes sure that function is not called unless opcache.restrict_api is empty - for compatibility with shared webhostings where this configuration property might be common.

vavrecan added 2 commits June 11, 2016 13:08
calling opcache_invalidate will result in ErrorException (Zend OPcache API is restricted by "restrict_api") if opcache.restrict_api is not empty and script is used outside of allowed path. I suggest that there is check which makes sure that function is not called unless opcache.restrict_api is empty - for compatibility with shared webhostings where this configuration property might be common.
uwetews added a commit that referenced this pull request Jul 18, 2016
@uwetews
Copy link
Contributor

uwetews commented Jul 18, 2016

I committed this as a patch as opcache_invalidate is used also in several other locations.

@uwetews uwetews closed this Jul 18, 2016
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

Successfully merging this pull request may close these issues.

2 participants