Requirements checker never verifies memory_limit/max_execution_time are set to sane values #106

Open
opened 2026-09-01 00:21:13 -04:00 by jared · 0 comments
Owner

Severity: Low

config/requirements.php (the documented "single source of truth" for runtime requirements) only checks PHP version (8.2+) and 6 extensions (ldap/mysqli/curl/mbstring/fileinfo/json). No ini_get('memory_limit') or max_execution_time check exists anywhere in config/requirements.php, scripts/check_requirements.php, or api/health.php. No app-level ini_set('memory_limit', ...) override exists anywhere either.

Impact: A deployment on a host with a low default memory_limit (e.g. shared-hosting-style 128M) passes the startup requirements check cleanly and only surfaces as a mysterious failure under real load — a large CSV export, an oversized dashboard query on a big install.

Fix: Add a memory_limit/max_execution_time sanity check (e.g. warn if memory_limit < 256M) to the requirements checker, alongside the existing PHP version/extension checks.

**Severity:** Low `config/requirements.php` (the documented "single source of truth" for runtime requirements) only checks PHP version (8.2+) and 6 extensions (ldap/mysqli/curl/mbstring/fileinfo/json). No `ini_get('memory_limit')` or `max_execution_time` check exists anywhere in `config/requirements.php`, `scripts/check_requirements.php`, or `api/health.php`. No app-level `ini_set('memory_limit', ...)` override exists anywhere either. **Impact:** A deployment on a host with a low default `memory_limit` (e.g. shared-hosting-style 128M) passes the startup requirements check cleanly and only surfaces as a mysterious failure under real load — a large CSV export, an oversized dashboard query on a big install. **Fix:** Add a memory_limit/max_execution_time sanity check (e.g. warn if memory_limit < 256M) to the requirements checker, alongside the existing PHP version/extension checks.
jared added the configpriority/low labels 2026-09-08 10:15:51 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/tinker_tickets#106