APCu requirement for 32MB always displays since APCu 5.1.25

Created on 30 July 2025, 4 days ago

Problem/Motivation

https://pecl.php.net/package/APCu/5.1.25
- The apc.shm_segments ini option has been removed. Multiple SHM segments are no longer
supported. (They were already not supported when using mmap, which is the default mode of
operation)

However, the APCu check for 32MB in Drupal since https://www.drupal.org/project/drupal/issues/3466399 🐛 APCu requirement for 32M is checking wrong value Needs review is referencing the segments INI value. But because it now returns false it will calculate an actual size of 0 and always display the warning that you need to set to 32MB or above.

Steps to reproduce

Update to APCu 5.1.25
Head to status report
Warning always appears

Proposed resolution

Check for segment count ini returning false and assume 1 if it does as it now always 1 in APCu 5.1.25

Remaining tasks

-

User interface changes

-

Introduced terminology

-

API changes

-

Data model changes

-

Release notes snippet

-

🐛 Bug report
Status

Active

Version

10.4

Component

install system

Created by

🇬🇧United Kingdom Driskell

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

Comments & Activities

Production build 0.71.5 2024