1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

sapi/apache: AP_MPMQ_MAX_THREADS is always available. (#14934)

since we upgraded the minimum with 2.4, AP_MPMQ_MAX_THREADS is always
available (since 2.3) and all MPM return a value, including prefork.
This commit is contained in:
David CARLIER
2024-07-12 13:22:24 +01:00
committed by GitHub
parent 79215c0727
commit 0f398a437e

View File

@@ -486,13 +486,9 @@ php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp
}
#ifdef ZTS
int expected_threads;
#ifdef AP_MPMQ_MAX_THREADS
if (ap_mpm_query(AP_MPMQ_MAX_THREADS, &expected_threads) != APR_SUCCESS) {
expected_threads = 1;
}
#else
expected_threads = 1;
#endif
php_tsrm_startup_ex(expected_threads);
# ifdef PHP_WIN32