php-src/sapi/apache2handler
Arnaud Le Blanc c561f7da85
Refresh zend_mm shadow key on fork
The shadow key is refreshed when resetting the memory manager between two
requests. But in forking SAPIs the first request of a child process inherits the
shadow key of the parent. As a result, a leak of the shadow key during the first
request of one process gives away the shadow key used during the first request
of other processes. This makes the key refresh mechanism less useful.

Here I ensure that we refresh the shadow key after a fork. We can not reset the
manager as there may be active allocations. Instead, we have to recompute shadow
pointers with the new key.

Closes GH-16765
2025-07-29 14:00:37 +02:00
..
apache_config.c Use more compact representation for packed arrays. 2021-11-03 15:18:26 +03:00
config.m4 Autotools: Obsolete PHP_TEST_BUILD, PHP_BUILD_THREAD_SAFE, and PHP_DEF_HAVE (#15802) 2024-09-08 21:09:48 +02:00
config.w32 Remove support for EOL Apache 2.0 and 2.2 in favor of 2.4+ (#14664) 2024-07-08 00:07:55 +02:00
CREDITS Remove support for EOL Apache 2.0 and 2.2 in favor of 2.4+ (#14664) 2024-07-08 00:07:55 +02:00
mod_php.c Fix initializer warning in apache2handler 2021-09-16 16:52:38 +02:00
php_apache.h Remove support for EOL Apache 2.0 and 2.2 in favor of 2.4+ (#14664) 2024-07-08 00:07:55 +02:00
php_functions.c sapi/apache2handler/php_functions.c: No need to rely on argnum (#16143) 2024-09-30 22:09:17 +01:00
php_functions.stub.php Enable class entry generation for sapi extensions 2021-02-14 12:03:48 +01:00
php_functions_arginfo.h Implement "support doc comments for internal classes and functions" (#13266) 2024-02-25 08:41:31 +01:00
sapi_apache2.c Refresh zend_mm shadow key on fork 2025-07-29 14:00:37 +02:00