|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68155 opcache.file_update_protection, opcache.restrict_api not documented
Submitted: 2014-10-05 00:43 UTC Modified: 2020-04-09 13:16 UTC
Avg. Score:3.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: greenreaper at hotmail dot com Assigned: cmb (profile)
Status: Closed Package: opcache
PHP Version: Irrelevant OS:
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: greenreaper at hotmail dot com
New email:
PHP Version: OS:


 [2014-10-05 00:43 UTC] greenreaper at hotmail dot com
From manual page:

The configuration setting opcache.file_update_protection is not documented. It appears to be analogous to the apc variable of the same name which prevents caching files that are less than this number of seconds old.


The configuration setting opcache.restrict_api also appears in the output of phpinfo but is not mentioned in the documentation.

It appears to restrict the script path the api functions are executed from:

#66441 mentions this as well, but has been reported for a particular version of PHP and I can't edit it.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-20 16:16 UTC] zoeslam at gmail dot com
I would like a documentation too for these two options.

For the first one, i suppose it's similar to:
 [2017-01-28 12:46 UTC]
-Package: Documentation problem +Package: opcache
 [2020-04-09 13:16 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-04-09 13:16 UTC]
The documentation had been updated in the meantime.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Jan 23 13:03:35 2022 UTC