You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
The compression (string, integer) setting is the compression algorithm
to use when the Phar is built. The compression affects the individual
files within the Phar, and not the Phar as a whole (Phar::compressFiles()).
The following is a list of the signature algorithms listed on the help
page:
- BZ2 (Phar::BZ2)
- GZ (Phar::GZ)
- NONE (Phar::NONE)
I've tried with box 2.5.0 to put in my box.json config file ,
{
"compression": "NONE"
}
After building the contents, I got an exception on console output
? Compressing...
[BadMethodCallException]
Unknown compression specified, please pass one of Phar::GZ or Phar::BZ2
My platform PHP 5.6.5 with phar directives, given by php --ri phar
Phar
Phar: PHP Archive support => enabled
Phar EXT version => 2.0.2
Phar API version => 1.1.1
SVN revision => $Id: ac6bd272c417316cc97fd46ea4f8372dcf054406 $
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => enabled
OpenSSL support => enabled
Did I missed something, or misunderstood feature ?
The text was updated successfully, but these errors were encountered:
Have you tried building your phar without the "compression" setting at all?
I think I may have misunderstood or incorrectly used the Phar::NONE constant. If you're able to build it without the option, I'll have fix the documentation.
Yes, without compression option, the phar was built. It may be usefull if compression: NONE works, because we can switch easily between NONE to another value like GZ or BZ2
As specified by help itself
I've tried with box 2.5.0 to put in my box.json config file ,
After building the contents, I got an exception on console output
My platform PHP 5.6.5 with phar directives, given by
php --ri phar
Did I missed something, or misunderstood feature ?
The text was updated successfully, but these errors were encountered: