[php-src] Issue #7915: php_opcache crash - memory access violation

From: Date: Sun, 09 Jan 2022 15:19:45 +0000
Subject: [php-src] Issue #7915: php_opcache crash - memory access violation
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238911@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7915 Comment Author: cmb69 OPcache instances are not supposed to shared between different SAPIs. Actually, each combination of [user/cache_id/SAPI/system_id](https://github.com/php/php-src/blob/php-8.0.14/ext/opcache/shared_alloc_win32.c#L72-L89), where the [system_id is unique for each PHP version plus some further details](https://github.com/php/php-src/blob/php-8.0.14/Zend/zend_system_id.c), has its own ID which is hashed. Since we're using MD5 hashes, there is a chance of collisions, but that should be pretty low. You can double check that when file_cache is enabled for Web and CLI; there should be at least two different sets of caches, even if you use the same basedir for the file_cache.

« previous php.bugs (#238911) next »