-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to disable tmp caching of phar contents #13055
Comments
Additionally the cache files don't seem to go away when |
in a modern OS it should be enough to remove this caching but set POSIX_FADV_WILLNEED though this all probably only matters (if at all) at all with slow storage.. |
Only files that were compressed in the phar are cached on |
Seems like the awkward design of the stream wrapper ops makes the tmpfile a necessity for handling compressed files within phars. Too bad |
It isn't awkward..it is just old .. a proper generic decompression library like libarchive wasn't an option back then. Today it could be just a libarchive filter/format and PHP just evaluates the code.. |
Description
It's not clear to me what the point of caching phar contents is. In a world where opcache is used, it shouldn't be necessary to cache the phar contents anyway, except perhaps the occasional data file.
In addition, since different threads / processes don't share phar caches,
/tmp
can get very crowded with lots of files caching near-identical data.I maintain a long-running application in which autoload time is not a concern, but the hogging of tmp space is a problem for my users. There doesn't seem to be a way to stop ext-phar from caching things read from phars.
The text was updated successfully, but these errors were encountered: