Bug #90838

Errors when opcache_invalidate or opcache_reset are disabled for security reasons

Added by Tobias Grave 13 days ago. Updated 6 days ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2020-03-26
Due date:
% Done:

100%

TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Some webhosting providers disable OpCache related PHP functions (opcache_invalidate, opcache_reset, opcache_get_status, ...) for security reasons, beacause the in memory cache is usually shared among multiple users on the same webserver when PHP-FPM is used.

If opcache_invalidate or opcache_reset are disabled, Typo3 will show an error message.

Both functions are only used in typo3/sysext/core/Classes/Service/OpcodeCacheService.php, maybe a check can be added if opcache_invalidate and opcache_reset are disabled or simply the error control operator @.

Associated revisions

Revision 8f2fe557 (diff)
Added by Susanne Moog 12 days ago

[TASK] Update EnvironmentStatus OpcodeCache info

The original implementation was meant to handle different variants of
opcaches. As of now, only the native PHP opcache is still supported.

This patch cleans up the settings and setup check and adds an
additional check whether clearing is possible or deactivated via
disable_functions.

Resolves: #90838
Releases: master
Change-Id: I12bde7cf160be548904737acee5c1d39faadeba0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63932
Tested-by: TYPO3com <>
Tested-by: Andreas Fernandez <>
Tested-by: Benni Mack <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Benni Mack <>

History

#1 Updated by Gerrit Code Review 13 days ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63932

#2 Updated by Gerrit Code Review 13 days ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63932

#3 Updated by Gerrit Code Review 12 days ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63932

#4 Updated by Gerrit Code Review 12 days ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63932

#5 Updated by Susanne Moog 12 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Benni Mack 6 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF