Hi Martin, > -----Original Message----- > From: Martin Keckeis [mailto:martin.keckeis1@xxxxxxxxx] > Sent: Friday, July 29, 2016 8:43 AM > To: php-windows@xxxxxxxxxxxxx > Subject: Opcache issue: opcache.file_cache_callback (or > documentation issue?) > > Hello togehter, > > many people seem to have problems with opcache on windows. > > https://bugs.php.net/bug.php?id=70022 > http://stackoverflow.com/questions/35908029/zend-opcache-issue-windows- > server-2012-iis-plesk-php-7 > https://github.com/zendtech/ZendOptimizerPlus/issues/167 > > My message currently was: > Base address marks unusable memory region. Please setup opcache.file_cache > and opcache.file_cache_callback directives for more convenient Opcache usage > Attempt to access invalid address. > > I found the "opcache.file_cache" option and set it to, which seem to fixed my > problem for now. > > But what is the option "opcache.file_cache_callback"? I found this option only > there > opcache.file_cache_fallback=1 implicitly activates opcache.file_cache_only=1 for a certain process only, that failed to attach to SHM. This is automatically on if opcache.file_cache is explicitly setup. That certain process will use file cache only until it exits, while still requiring a small part of SHM to be reattached. Thus, it is always worthy to activate the file cache. While not being as fast as SHM, it'll significantly reduce failures due to SHM reattach issues on Windows, while still keeping speedup. And yes, we have to add this at least to the php.ini-* docs. Regards Anatol -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php