php.net |  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
Votes:2
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
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:
MUST BE VALID
Solve the problem:
48 - 23 = ?
Subscribe to this entry?

 
 [2014-10-05 00:43 UTC] greenreaper at hotmail dot com
Description:
------------
---
From manual page: http://www.php.net/opcache.configuration
---


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.

https://raw.githubusercontent.com/zendtech/ZendOptimizerPlus/master/README

---

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:
https://github.com/zendtech/ZendOptimizerPlus/issues/89

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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:
http://php.net/manual/it/apc.configuration.php#ini.apc.file-update-protection
 [2017-01-28 12:46 UTC] cmb@php.net
-Package: Documentation problem +Package: opcache
 [2020-04-09 13:16 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-04-09 13:16 UTC] cmb@php.net
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