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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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