Cleanup assumes wrong Opcache base address filename #21

Open
opened 2026-01-24 11:40:12 +01:00 by admin · 0 comments
Owner

Originally created by @cmb69 on GitHub (May 23, 2019).

cleanupBaseAddressFile() assumes no longer valid base address filenames. These names may have been valid once, but are no longer; see https://github.com/php/php-src/blob/php-7.3.6RC1/ext/opcache/shared_alloc_win32.c#L94-L114 on how the are constructed currently.

To cater to future changes (e.g. https://github.com/cmb69/php-src/tree/opcache.cache_id/ext), it might be best to delete all files starting with ACCEL_FILEMAP_BASE which is "ZendOPcache.MemoryBase" and doesn't appear likely to change.

Originally created by @cmb69 on GitHub (May 23, 2019). [`cleanupBaseAddressFile()`](https://github.com/php/pftt2/blob/4062b2dff3079a1af25655e666722dbae221d210/src/com/mostc/pftt/scenario/OpcacheScenario.java#L370) assumes no longer valid base address filenames. These names may have been valid once, but are no longer; see https://github.com/php/php-src/blob/php-7.3.6RC1/ext/opcache/shared_alloc_win32.c#L94-L114 on how the are constructed currently. To cater to future changes (e.g. https://github.com/cmb69/php-src/tree/opcache.cache_id/ext), it might be best to delete all files starting with `ACCEL_FILEMAP_BASE` which is "ZendOPcache.MemoryBase" and doesn't appear likely to change.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: php/pftt2#21