Issue Bug Closed

#102734opcache_reset() is not checked for existence in TYPO3\CMS\Core\Service\OpcodeCacheService

Florian Konath 12/30/23, 21:48 updated 07/09/24, 15:12

Description

In line 76 opcache_invalidate is checked for existence. It seems that my hosting provider does not provide those functions, but only opcache_get_status() is listed in disabled functions. So I get an error “Call to undefined function TYPO3\CMS\Core\Service\opcache_reset()”. This can be avoided by checking opcache_reset() also for existence in line 76:

    return function_exists('opcache_reset') && function_exists('opcache_invalidate') && !(in_array('opcache_invalidate', $disabled, true) || in_array('opcache_reset', $disabled, true));

Reviews 3

History 27

  1. Gerrit Code Review pushed patch set 1 for main to change 82361 status New Under Review 01/06/24, 22:58

  2. Gerrit Code Review pushed patch set 2 for main to change 82361 01/07/24, 20:40

  3. Gerrit Code Review pushed patch set 3 for main to change 82361 01/08/24, 21:53

  4. Gerrit Code Review pushed patch set 1 for 12.4 to change 82383 01/09/24, 08:46

  5. Gerrit Code Review pushed patch set 1 for 11.5 to change 82384 01/09/24, 08:47

  6. Stefan Bürk commented and changed status Under Review Resolved done 0 % 100 % 01/09/24, 09:20

    Applied in changeset commit:c90c95abef5e1d6d005385a5e44d0c181b8bc0a9.

  7. Benni Mack changed status Resolved Closed 07/09/24, 15:12