Skip to content

Commit 0f398a4

Browse files
authored
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.
1 parent 79215c0 commit 0f398a4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sapi/apache2handler/sapi_apache2.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,9 @@ php_apache_server_startup(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp
486486
}
487487
#ifdef ZTS
488488
int expected_threads;
489-
#ifdef AP_MPMQ_MAX_THREADS
490489
if (ap_mpm_query(AP_MPMQ_MAX_THREADS, &expected_threads) != APR_SUCCESS) {
491490
expected_threads = 1;
492491
}
493-
#else
494-
expected_threads = 1;
495-
#endif
496492

497493
php_tsrm_startup_ex(expected_threads);
498494
# ifdef PHP_WIN32

0 commit comments

Comments
 (0)