[php-src] PR #20116: Fix GH-19974: fpm_status_export_to_zval segfault for parallel execution
| From: | bukka | Date: | Thu, 09 Oct 2025 17:08:26 +0000 |
| Subject: | [php-src] PR #20116: Fix GH-19974: fpm_status_export_to_zval segfault for parallel execution | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33548@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20116
Author: bukka
The fix fixes some other races that could result in mixed up copy and nprocs number. It requires
creating a copy in a similar way like for request status.
This was not previously used to not impact other requests. However this does not make that much
sense as the only thing that impacts it is holding the lock and not waiting for it. It is true that
if there was a big contention then the lock would be acquired more often but that can be achieved by
using fpm_get_status in loop so it should not make a huge difference hopefully.