mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02: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:
parent
79215c0727
commit
0f398a437e
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue