Opened 8 hours ago
Last modified 5 hours ago
#49691 reviewing defect (bug)
opcache and restrict_api
Reported by: | iheadru | Owned by: | SergeyBiryukov |
---|---|---|---|
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 (4)
Note: See
TracTickets for help on using
tickets.
Attached is a patch that checks for empty/unrestricted
opcache.restrict_api
or thatopcache.restrict_api
haswp-admin