Skip to content

Commit

Permalink
sapi/apache: AP_MPMQ_MAX_THREADS is always available. (#14934)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
devnexen committed Jul 12, 2024
1 parent 79215c0 commit 0f398a4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sapi/apache2handler/sapi_apache2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f398a4

Please sign in to comment.