- 🇮🇹Italy apaderno Brescia, 🇮🇹
apc.enable_cli
enables APC or APCu whenphp
is executed from the command line.php -i
will show the following information whenapc.enable_cli
has been set toOn
.APCu Support => Enabled Version => 5.1.23 APCu Debugging => Disabled MMAP Support => Enabled MMAP File Mask => Serialization Support => php, igbinary Build Date => Apr 27 2024 10:26:52 Directive => Local Value => Master Value apc.coredump_unmap => Off => Off apc.enable_cli => On => On apc.enabled => On => On apc.entries_hint => 4096 => 4096 apc.gc_ttl => 3600 => 3600 apc.mmap_file_mask => no value => no value apc.preload_path => no value => no value apc.serializer => igbinary => igbinary apc.shm_segments => 1 => 1 apc.shm_size => 32M => 32M apc.slam_defense => Off => Off apc.smart => 0 => 0 apc.ttl => 0 => 0 apc.use_request_time => Off => Off
When
apc.enable_cli
is set toOff
,php -i
will show the following information. (Only the first line is relevant. The other values vary depending on the APCu and PHP versions.APCu Support => Disabled Version => 5.1.23 APCu Debugging => Disabled MMAP Support => Enabled MMAP File Mask => Serialization Support => Disabled Build Date => Apr 27 2024 10:26:52 Directive => Local Value => Master Value apc.coredump_unmap => Off => Off apc.enable_cli => Off => Off apc.enabled => On => On apc.entries_hint => 4096 => 4096 apc.gc_ttl => 3600 => 3600 apc.mmap_file_mask => no value => no value apc.preload_path => no value => no value apc.serializer => igbinary => igbinary apc.shm_segments => 1 => 1 apc.shm_size => 32M => 32M apc.slam_defense => Off => Off apc.smart => 0 => 0 apc.ttl => 0 => 0 apc.use_request_time => Off => Off
- Status changed to Closed: duplicate
5 months ago 6:46pm 29 June 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
The code currently used from the module expects that the backward-compatible module is installed together the APCu extension, which is necessary in PHP 7 to be able to use functions like
apc_cache_info()
which must be present for this module to understand the APCu extension is installed.📌 Change the module to require only the APCu extension Needs work has already a patch to fix what reported here.