Undefined function apc_clear_cache() in PHP 7

Created on 12 February 2018, over 6 years ago
Updated 30 July 2024, about 2 months ago

After applying the patch from https://www.drupal.org/project/apc/issues/2846622 📌 Change the module to require only the APCu extension Needs work works fine. Only when deleting the cache an error occurs:

Error: Call to undefined function apc_clear_cache() in apc_clear_user_cache() (Zeile 153 von /html/drupal/sites/all/modules/apc/apc.module).

It seems that PHP 7 does no longer support function apc_clear_user_cache().

I replaced this with apcu_clear_cache() and everything works fine again.

By the way: There are two functions calling apc_clear_user_cache(): apc_clear_user_cache() and apc_clear_opcode_cache() and I think apc_clear_opcode_cache() is obsolet now and could be deleted?

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany smitty

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024