[php-src] Issue #7915: php_opcache crash - memory access violation
| From: | jjdunn | Date: | Mon, 10 Jan 2022 01:32:47 +0000 |
| Subject: | [php-src] Issue #7915: php_opcache crash - memory access violation | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238925@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7915
Comment Author: jjdunn
> 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.
I'm not seeing that.
in php.ini on my non-production system:
`
zend_extension=php_opcache
opcache.enable=1;
opcache.enable_cli=1;
opcache.error_log="c:\windows\temp\opcache.log";
opcache.file_cache="c:\temp\opcache";
opcache.file_cache_only=0;
`
Note: there is *no*
opcache.cache_id defined in php.ini
the .bat file for CLI process #1:
php -d opcache.cache_id=%cli-cache% <entryScript.php> <processName1>
<entryPoint1> <arguments>
the .bat file for CLI process #2:
php <entryScript.php> <processName2> <entryPoint2> <arguments>
I restarted apache, and then opened the web app; and executed both of the .bat files
Now in c:\temp\opcache\ there is ONE subdirectory:
`
\9ddbaf9b6188aa510f3b7eccc9d5c82c\
\6017a1d78e41dff04681efbe1c05c242\
\C\
\web\
\....etc....\ thru the entire path of my application
`
the web-app files are NOT in the file-cache, but the files from BOTH of the CLI processes (one with
the default/null cache-id, and the other with an explicit cache-id) are present in the SAME cache.
Is this as expected ??