I added a phar Directive cache_list in php.iniand caching works fine. After a few days, I updated phar, now I get the following error:
Warning: Phar::webPhar(phar:///usr/share/app/app.phar/www.php): failed to open
stream: phar error: internal corruption of phar "/usr/share/app/app.phar"
(crc32 mismatch on file "www.php") in /usr/share/app/app.phar on line 8
If I comment on the directive cache_list, phar works and loads fine, but now I can no longer cache it. This makes me think that PHP is looking at the crc32old file.
I tried restarting apache. I don’t know how else to “refresh” the cache, or if this is even a problem.
source
share