Predefined Constants
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
Phar compression constants
Constant |
Value |
Description |
Phar::NONE
(int )
|
0x00000000 |
no compression |
Phar::COMPRESSED
(int )
|
0x0000F000 |
bitmask that can be used with file flags to determine if any compression is present |
Phar::GZ
(int )
|
0x00001000 |
zlib (gzip) compression |
Phar::BZ2
(int )
|
0x00002000 |
bzip2 compression |
Phar webPhar mime override constants
Constant |
Value |
Description |
Phar::PHP
(int )
|
0 |
used to instruct the mimeoverrides parameter
of Phar::webPhar() that the extension should be
parsed as a PHP file |
Phar::PHPS
(int )
|
1 |
used to instruct the mimeoverrides parameter
of Phar::webPhar() that the extension should be
parsed as a PHP source file through highlight_file() |
There are no user contributed notes for this page.