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 file format constants
Constant Value Description
Phar::PHAR (int) 1 phar file format
Phar::TAR (int) 2 tar file format
Phar::ZIP (int) 3 zip file format
Phar signature constants
Constant Value Description
Phar::MD5 (int) 0x0001 signature with md5 hash algorithm
Phar::SHA1 (int) 0x0002 signature with sha1 hash algorithm
Phar::SHA256 (int) 0x0003 signature with sha256 hash algorithm (requires hash extension)
Phar::SHA512 (int) 0x0004 signature with sha512 hash algorithm (requires hash extension)
Phar::OPENSSL (int) 0x0010 signature with OpenSSL public/private key pair. This is a true, asymmetric key signature.
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()

Here you can write a comment


Please enter at least 10 characters.
Loading... Please wait.
* Pflichtangabe
There are no comments available yet.

PHP cURL Tutorial: Using cURL to Make HTTP Requests

cURL is a powerful PHP extension that allows you to communicate with different servers using various protocols, including HTTP, HTTPS, FTP, and more. ...

TheMax

Autor : TheMax
Category: PHP-Tutorials

Midjourney Tutorial - Instructions for beginners

There is an informative video about Midjourney, the tool for creating digital images using artificial intelligence, entitled "Midjourney tutorial in German - instructions for beginners" ...

Mike94

Autor : Mike94
Category: KI Tutorials

Basics of views in MySQL

Views in a MySQL database offer the option of creating a virtual table based on the result of an SQL query. This virtual table can be queried like a normal table without changing the underlying data. ...

admin

Autor : admin
Category: mySQL-Tutorials

Publish a tutorial

Share your knowledge with other developers worldwide

Share your knowledge with other developers worldwide

You are a professional in your field and want to share your knowledge, then sign up now and share it with our PHP community

learn more

Publish a tutorial