From e90291b5fe10769b3d700a1cc7bb7a347605cffe Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Mon, 19 May 2008 21:57:30 +0000 Subject: [PATCH] document phar class constants git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260021 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/phar/constants.xml | 208 ++++++++++++++++++++++++++++++++++- 1 file changed, 206 insertions(+), 2 deletions(-) diff --git a/reference/phar/constants.xml b/reference/phar/constants.xml index 1b88a49752..fac01c036d 100644 --- a/reference/phar/constants.xml +++ b/reference/phar/constants.xml @@ -1,9 +1,213 @@ - + &reftitle.constants; - &no.constants; + &extension.constants; + + Phar compression constants + + + + Constant + Value + Description + + + + + + Phar::NONE + (integer) + + 0x00000000 + no compression + + + + Phar::COMPRESSED + (integer) + + 0x0000F000 + bitmask that can be used with file flags to determine if any compression is present + + + + Phar::GZ + (integer) + + 0x00001000 + zlib (gzip) compression + + + + Phar::BZ2 + (integer) + + 0x00002000 + bzip2 compression + + + +
+ + Phar file format constants + + + + Constant + Value + Description + + + + + + Phar::SAME + (integer) + + 0 + retain the same file format + + + + Phar::PHAR + (integer) + + 1 + phar file format + + + + Phar::TAR + (integer) + + 2 + tar file format + + + + Phar::ZIP + (integer) + + 3 + zip file format + + + +
+ + Phar signature constants + + + + Constant + Value + Description + + + + + + Phar::MD5 + (integer) + + 0x0001 + signature with md5 hash algorithm + + + + Phar::SHA1 + (integer) + + 0x0002 + signature with sha1 hash algorithm + + + + Phar::SHA256 + (integer) + + 0x0003 + signature with sha256 hash algorithm (requires hash extension) + + + + Phar::SHA512 + (integer) + + 0x0004 + signature with sha512 hash algorithm (requires hash extension) + + + + Phar::PGP + (integer) + + 0x0010 + signature with PGP (unimplemented) + + + +
+ + Phar webPhar mime override constants + + + + Constant + Value + Description + + + + + + Phar::PHP + (integer) + + 1 + used to instruct the mimeoverrides parameter + of Phar::webPhar that the extension should be + parsed as a PHP file + + + + Phar::PHPS + (integer) + + 2 + used to instruct the mimeoverrides parameter + of Phar::webPhar that the extension should be + parsed as a PHP source file through highlight_file + + + + Phar::SHA256 + (integer) + + 0x0003 + signature with sha256 hash algorithm (requires hash extension) + + + + Phar::SHA512 + (integer) + + 0x0004 + signature with sha512 hash algorithm (requires hash extension) + + + + Phar::PHP + (integer) + + 0x0010 + signature with PGP (unimplemented) + + + +