[php-maint] Bug#639268: Bug#639268: [PATCH] Handle .phar (and .bz2|.gz|.zip) with PHP
cweiske at cweiske.de
Mon Mar 17 18:15:09 UTC 2014
>> I'm missing why we would want Apache to handle the phar file
>> directly. If it's an archive, don't you want to download it instead
>> of execute it in the web server context?
> Thanks, but this does not really answer my question?
I didn't see your question until I read the bug, sorry.
PHAR archives can be used to distribute full web applications with all
dependencies included, so that you only have to put it in your web
server's document root and access it via your browser.
Specifically to support this, phar has a feature called "web index
file" in the phar stub. It gets called whenever the phar is executed
through a HTTP request.
So it makes sense to let PHP handle phar files (and their compressed
versions) directly, without extracting them.
More information about phar can be found on .
Regards/Mit freundlichen Grüßen
-=≡ Geeking around in the name of science since 1982 ≡=-
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: not available
More information about the pkg-php-maint