php-src/sapi/apache2handler
Niels Dossche 4da0da7f2d
Implement GH-10854: TSRM should set a smarter value for expected_threads (#10867)
The tsrm_startup() function is currently always called with expected_threads = 1.
This means that the hashtable used in the TSRM will only contain a single bucket,
and all thread resources will therefore be in the same linked list.
So it's not really a hashtable right now, even though it's supposed to be.

This patch adds a function tsrm_startup_ex() which takes the expected
thread count as an argument. It also keeps the tsrm_startup() function
so there are no BC breaks.

In the Apache SAPI we query how many threads we have, and pass that to
the tsrm_startup_ex() function.
2023-03-17 17:08:47 +01:00
..
apache_config.c Use more compact representation for packed arrays. 2021-11-03 15:18:26 +03:00
config.m4 Fixed bug #79737 (Building embed as static fails during install step). 2020-06-29 11:14:20 +03:00
config.w32 Remove major version from apache module 2019-02-05 14:57:35 +01:00
CREDITS
mod_php.c Fix initializer warning in apache2handler 2021-09-16 16:52:38 +02:00
php.sym Remove major version from apache module 2019-02-05 14:57:35 +01:00
php_apache.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_functions.c Fix some minor warnings (#8568) 2022-05-18 08:30:59 -06:00
php_functions.stub.php Enable class entry generation for sapi extensions 2021-02-14 12:03:48 +01:00
php_functions_arginfo.h Improve class entry generation 2021-02-16 13:09:56 +01:00
sapi_apache2.c Implement GH-10854: TSRM should set a smarter value for expected_threads (#10867) 2023-03-17 17:08:47 +01:00