Opened 6 years ago
Closed 5 years ago
#49691 closed defect (bug) (fixed)
opcache and restrict_api
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.5 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | has-patch |
| Focuses: | administration | Cc: |
Description (last modified by )
Hello!
Between 4.8 and 4.9 versions of WordPress code became not compatible with opcache restrict_api.
If PHP opcache.restrict_api is defined WordPress generate warnings like these
PHP Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in */wp-admin/includes/file.php on line 502
PHP Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in */wp-admin/includes/file.php on line 604
If PHP display_errors is On this leads to some functions in admin not work.
Attachments (1)
Change History (5)
#2
@
6 years ago
- Keywords has-patch added
- Version 5.3.2 deleted
Hi @iheadru,
Welcome to WordPress Trac! Thanks for the ticket.
@skithund thanks for the patch.
Do you get the same error in the latest version of WordPress?
Note: See
TracTickets for help on using
tickets.
Attached is a patch that checks for empty/unrestricted
opcache.restrict_apior thatopcache.restrict_apihaswp-admin