- pere orga Catalonia
I think the standard nowadays (APCu >= 4.0.3) would be to check the following:
extension_loaded('apcu') && apcu_enabled()
- πΊπΈUnited States mfb San Francisco
π yes this is correct as far as I know - I use
extension_loaded('apcu') && apcu_enabled()
in a contrib module, and we're way beyond APCu 4.x, as 5.x is required for PHP 7 (much less PHP 8)