PHP - Manual: Phar::getSupportedCompression
2024-12-21
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.2.0)
Phar::getSupportedCompression — Return array of supported compression algorithms
No parameters.
Returns an array containing any of Phar::GZ
or
Phar::BZ2
, depending on the availability of
the zlib extension or the
bz2 extension.
官方地址:https://www.php.net/manual/en/phar.getsupportedcompression.php