1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-26 00:32:15 +01:00
Files
archived-doc-ru/reference/phar/constants.xml
2023-11-24 13:32:39 +03:00

218 lines
6.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 37280533a76693adac626a37ffc8daa2276400ce Maintainer: rjhdby Status: ready -->
<!-- Reviewed: no -->
<appendix xml:id="phar.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
&extension.constants;
<table xml:id="phar.constants.compression">
<title>Константы сжатия Phar</title>
<tgroup cols="3">
<thead>
<row>
<entry>Константа</entry>
<entry>Значение</entry>
<entry>Описание</entry>
</row>
</thead>
<tbody>
<row xml:id="phar.constants.none">
<entry>
<constant>Phar::NONE</constant>
(<type>int</type>)
</entry>
<entry>0x00000000</entry>
<entry>без сжатия</entry>
</row>
<row xml:id="phar.constants.compressed">
<entry>
<constant>Phar::COMPRESSED</constant>
(<type>int</type>)
</entry>
<entry>0x0000F000</entry>
<entry>битовая маска, которая может быть использована с флагами файла для определения наличия сжатия</entry>
</row>
<row xml:id="phar.constants.gz">
<entry>
<constant>Phar::GZ</constant>
(<type>int</type>)
</entry>
<entry>0x00001000</entry>
<entry>сжатие zlib (gzip)</entry>
</row>
<row xml:id="phar.constants.bz2">
<entry>
<constant>Phar::BZ2</constant>
(<type>int</type>)
</entry>
<entry>0x00002000</entry>
<entry>сжатие bzip2</entry>
</row>
</tbody>
</tgroup>
</table>
<table xml:id="phar.constants.fileformat">
<title>Константы формата файла Phar</title>
<tgroup cols="3">
<thead>
<row>
<entry>Константа</entry>
<entry>Значение</entry>
<entry>Описание</entry>
</row>
</thead>
<tbody>
<row xml:id="phar.constants.phar">
<entry>
<constant>Phar::PHAR</constant>
(<type>int</type>)
</entry>
<entry>1</entry>
<entry>формат файла phar</entry>
</row>
<row xml:id="phar.constants.tar">
<entry>
<constant>Phar::TAR</constant>
(<type>int</type>)
</entry>
<entry>2</entry>
<entry>формат файла tar</entry>
</row>
<row xml:id="phar.constants.zip">
<entry>
<constant>Phar::ZIP</constant>
(<type>int</type>)
</entry>
<entry>3</entry>
<entry>формат файла zip</entry>
</row>
</tbody>
</tgroup>
</table>
<table xml:id="phar.constants.signature">
<title>Константы подписи Phar</title>
<tgroup cols="3">
<thead>
<row>
<entry>Константа</entry>
<entry>Значение</entry>
<entry>Описание</entry>
</row>
</thead>
<tbody>
<row xml:id="phar.constants.md5">
<entry>
<constant>Phar::MD5</constant>
(<type>int</type>)
</entry>
<entry>0x0001</entry>
<entry>подпись с помощью алгоритма хеширования md5</entry>
</row>
<row xml:id="phar.constants.sha1">
<entry>
<constant>Phar::SHA1</constant>
(<type>int</type>)
</entry>
<entry>0x0002</entry>
<entry>подпись с помощью алгоритма хеширования sha1</entry>
</row>
<row xml:id="phar.constants.sha256">
<entry>
<constant>Phar::SHA256</constant>
(<type>int</type>)
</entry>
<entry>0x0003</entry>
<entry>подпись с помощью алгоритма хеширования sha256 (требуется модуль hash)</entry>
</row>
<row xml:id="phar.constants.sha512">
<entry>
<constant>Phar::SHA512</constant>
(<type>int</type>)
</entry>
<entry>0x0004</entry>
<entry>подпись с помощью алгоритма хеширования sha512 (требуется модуль hash)</entry>
</row>
<row xml:id="phar.constants.openssl">
<entry>
<constant>Phar::OPENSSL</constant>
(<type>int</type>)
</entry>
<entry>0x0010</entry>
<entry>подпись с помощью пары открытого/закрытого ключей OpenSSL. Это подлинная подпись,
использующая асимметричный ключ.</entry>
</row>
<row xml:id="phar.constants.openssl-sha256">
<entry>
<constant>Phar::OPENSSL_SHA256</constant>
(<type>int</type>)
</entry>
<entry/>
<entry/>
</row>
<row xml:id="phar.constants.openssl-sha512">
<entry>
<constant>Phar::OPENSSL_SHA512</constant>
(<type>int</type>)
</entry>
<entry/>
<entry/>
</row>
</tbody>
</tgroup>
</table>
<table xml:id="phar.constants.mimeoverride">
<title>Константы переопределения MIME-типов webPhar</title>
<tgroup cols="3">
<thead>
<row>
<entry>Константа</entry>
<entry>Значение</entry>
<entry>Описание</entry>
</row>
</thead>
<tbody>
<row xml:id="phar.constants.php">
<entry>
<constant>Phar::PHP</constant>
(<type>int</type>)
</entry>
<entry>1</entry>
<entry>используется для указания параметру переопределения MIME-типа
<function>Phar::webPhar</function> на то, что расширение должно быть
разобрано как файл PHP</entry>
</row>
<row xml:id="phar.constants.phps">
<entry>
<constant>Phar::PHPS</constant>
(<type>int</type>)
</entry>
<entry>2</entry>
<entry>
используется для указания параметра переопределения MIME-типа
<function>Phar::webPhar</function>, в соответствии с которым расширение должно быть
разобрано как исходный файл PHP посредством <function>highlight_file</function></entry>
</row>
</tbody>
</tgroup>
</table>
</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->