Issue Bug Closed

#109287False positive warning "Infinite PHP script execution time" when running System Status Update task via CLI

Tobias Pfender 03/18/26, 14:41 updated 03/19/26, 06:33

Description

Since upgrading to TYPO3 13.4.27, the Scheduler task “System Status Update” (EXT:reports) sends a daily warning email containing:
[WARNING]System environment check – 1 Test(s)
### Infinite PHP script execution time: 1

The check reads ini_get(‘max_execution_time’) at runtime. When the Scheduler task is executed via CLI (as it always is via cron), PHP returns 0 for max_execution_time regardless of the value configured in php.ini. This is by design in PHP: the CLI SAPI always overrides max_execution_time to 0 (unlimited), as confirmed by PHP bug report #73849, which was closed as “Not a bug”.
TYPO3 itself is correctly configured with max_execution_time = 240 seconds for web requests. The warning is a false positive triggered solely because the environment check does not account for the CLI context in which the Scheduler task runs.

Additional notes:

  1. This issue was previously reported as Forge #48095 for older TYPO3 versions.
  2. PHP bug reference: https://bugs.php.net/bug.php?id=73849 (status: “Not a bug” – CLI max_execution_time is hardcoded to 0 by design)
  3. Reproduced on multiple different hosting environments, confirming this is not a hoster-specific configuration issue but a general CLI SAPI behavior.

Reviews 1

History 2

  1. Garvin Hicking commented and changed status New Closed <span data-processor="relativetime" data-value="2026-03-19T06:33:31+00:00" > 03/19/26, 06:33 </span>

    Thanks this has been addressed and merged here: 93235: [TASK] Skip two more system environment checks on CLI | https://review.typo3.org/c/Packages/TYPO3.CMS/+/93235