[php-src] PR #16517: Fix leak of accel_shared_globals for file_cache_only
| From: | cmb69 | Date: | Sun, 20 Oct 2024 13:47:07 +0000 |
| Subject: | [php-src] PR #16517: Fix leak of accel_shared_globals for file_cache_only | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29319@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16517
Author: cmb69
If
opcache.file_cache_only is enabled, accel_shared_globals is allocated
as true global, and we need to free that memory when we shut down the accelerator.
---
Leak can be detected when running e.g. ext/zend_test/tests/observer_declarations_file_cache.phpt
with a leak detector.