From e1a021f6ab78ee1541584e3b6550c32c5806fbf4 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Thu, 5 Feb 2026 12:41:08 +0100 Subject: [PATCH] Document --enable-zend-max-execution-timers configure option Fixes #3767 --- appendices/configure/misc.xml | 19 +++++++++++++++++++ reference/info/ini.xml | 8 ++++++++ 2 files changed, 27 insertions(+) diff --git a/appendices/configure/misc.xml b/appendices/configure/misc.xml index c95b91eab5a8..81683b0825c9 100644 --- a/appendices/configure/misc.xml +++ b/appendices/configure/misc.xml @@ -46,6 +46,25 @@ + + + + + + + Enable the use of POSIX timers for + max_execution_time + tracking, using per-thread CPU time clocks instead of the default + wall-clock based setitimer(). + This provides more accurate execution time measurement in threaded + environments. + Available on Linux only (requires timer_create() + support). + Available since PHP 8.1.0. Enabled by default for ZTS builds on + Linux since PHP 8.3.0. + + + diff --git a/reference/info/ini.xml b/reference/info/ini.xml index fcb3b6ec99a7..b5693f35ff09 100644 --- a/reference/info/ini.xml +++ b/reference/info/ini.xml @@ -251,6 +251,14 @@ set_time_limit function for more details. + + When PHP is compiled with + --enable-zend-max-execution-timers + (the default for ZTS builds on Linux since PHP 8.3.0), the + execution time is measured using per-thread CPU time clocks + via POSIX timers, which provides more accurate tracking + than the default wall-clock based timer. + Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a