php-src/sapi/fpm
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
..
fpm Refresh zend_mm shadow key on fork 2025-07-29 14:00:37 +02:00
tests FPM: Implement configurable access log limit 2025-07-29 11:32:01 +02:00
config.m4 Autotools: Normalize flags arguments (#15671) 2024-09-01 01:02:40 +02:00
CREDITS
init.d.php-fpm.in Remove redundant middle newlines in "Autotools" related files 2024-08-12 13:18:32 +02:00
LICENSE
Makefile.frag Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
php-fpm.8.in [skip ci] Add link to FPM docs in FPM man page (#14853) 2024-07-08 14:59:45 +02:00
php-fpm.conf.in sapi/fpm: retiring solaris /dev/poll support proposal. 2024-07-21 17:03:41 +01:00
php-fpm.service.in Fix bug #79014 (PHP-FPM & Primary script unknown) 2020-02-23 19:14:05 +00:00
status.html.in Remove redundant middle newlines in "Autotools" related files 2024-08-12 13:18:32 +02:00
www.conf.in Fix GH-14474: Better document remote user in PHP-FPM access.format (#14521) 2024-06-16 12:32:00 +01:00