mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-23 22:52:12 +01:00
Update translation.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: fernandoc Status: ready -->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: b824e2b1086e94a1077bd071964547283616030a Maintainer: ae Status: ready --><!-- CREDITS: fernandoc,ae -->
|
||||
<section xml:id="zlib.installation" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.install;
|
||||
<para>
|
||||
@@ -7,11 +7,6 @@
|
||||
configurar o PHP com <option role="configure">--with-zlib[=DIR]</option>
|
||||
</para>
|
||||
&windows.builtin;
|
||||
<note>
|
||||
<simpara>
|
||||
Suporte embutido para o zlib no Windows esta disponível partir do PHP 4.3.0.
|
||||
</simpara>
|
||||
</note>
|
||||
</section>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,34 +1,187 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: felipe Status: ready -->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 5e9500ddad6dbc2f1b01d7da8b53379c8b7c386c Maintainer: ae Status: ready --><!-- CREDITS: felipe,ae -->
|
||||
<appendix xml:id="zlib.constants" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.constants;
|
||||
&extension.constants;
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.force-gzip">
|
||||
<term>
|
||||
<constant>FORCE_GZIP</constant>
|
||||
(<type>integer</type>)
|
||||
<constant>FORCE_GZIP</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.force-deflate">
|
||||
<term>
|
||||
<constant>FORCE_DEFLATE</constant>
|
||||
(<type>integer</type>)
|
||||
<constant>FORCE_DEFLATE</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-encoding-raw">
|
||||
<term>
|
||||
<constant>ZLIB_ENCODING_RAW</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Algotítmo DEFLATE conforme RFC 1951.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-encoding-deflate">
|
||||
<term>
|
||||
<constant>ZLIB_ENCODING_DEFLATE</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Algorítimo ZLIB conforme RFC 1950.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-encoding-gzip">
|
||||
<term>
|
||||
<constant>ZLIB_ENCODING_GZIP</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Algorítimo GZIP conforme RFC 1952.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-filtered">
|
||||
<term>
|
||||
<constant>ZLIB_FILTERED</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-huffman-only">
|
||||
<term>
|
||||
<constant>ZLIB_HUFFMAN_ONLY</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-fixed">
|
||||
<term>
|
||||
<constant>ZLIB_FIXED</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-rle">
|
||||
<term>
|
||||
<constant>ZLIB_RLE</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-default-strategy">
|
||||
<term>
|
||||
<constant>ZLIB_DEFAULT_STRATEGY</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-block">
|
||||
<term>
|
||||
<constant>ZLIB_BLOCK</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-no-flush">
|
||||
<term>
|
||||
<constant>ZLIB_NO_FLUSH</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-partial-flush">
|
||||
<term>
|
||||
<constant>ZLIB_PARTIAL_FLUSH</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-sync-flush">
|
||||
<term>
|
||||
<constant>ZLIB_SYNC_FLUSH</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-full-flush">
|
||||
<term>
|
||||
<constant>ZLIB_FULL_FLUSH</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.zlib-finish">
|
||||
<term>
|
||||
<constant>ZLIB_FINISH</constant>
|
||||
(<type>int</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</appendix>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: felipe Status: ready -->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: eec6a4a36bf452bf271f116e7b6b9bb09d1181c3 Maintainer: ae Status: ready --><!-- CREDITS: felipe,ae -->
|
||||
|
||||
<chapter xml:id="zlib.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.examples;
|
||||
@@ -17,28 +17,28 @@ $filename = tempnam('/tmp', 'zlibtest') . '.gz';
|
||||
echo "<html>\n<head></head>\n<body>\n<pre>\n";
|
||||
$s = "Only a test, test, test, test, test, test, test, test!\n";
|
||||
|
||||
// open file for writing with maximum compression
|
||||
// Abre um arquivo para escrever os dados comprimidos
|
||||
$zp = gzopen($filename, "w9");
|
||||
|
||||
// write string to file
|
||||
// Escreve o texto no arquivo
|
||||
gzwrite($zp, $s);
|
||||
|
||||
// close file
|
||||
// Fecha o arquivo
|
||||
gzclose($zp);
|
||||
|
||||
// open file for reading
|
||||
// Abre o arquivo
|
||||
$zp = gzopen($filename, "r");
|
||||
|
||||
// read 3 char
|
||||
// Lê três bytes
|
||||
echo gzread($zp, 3);
|
||||
|
||||
// output until end of the file and close it.
|
||||
// Imprime até o final do arquivo e o fecha
|
||||
gzpassthru($zp);
|
||||
gzclose($zp);
|
||||
|
||||
echo "\n";
|
||||
|
||||
// open file and print content (the 2nd time).
|
||||
// Abre e imprime o arquivo, uma segunda vez
|
||||
if (readgzfile($filename) != strlen($s)) {
|
||||
echo "Error with zlib functions!";
|
||||
}
|
||||
@@ -49,6 +49,32 @@ echo "</pre>\n</body>\n</html>\n";
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>Utilizando a API de compressão/expansão incremental</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// Realiza uma compressão GZIP:
|
||||
$deflateContext = deflate_init(ZLIB_ENCODING_GZIP);
|
||||
$compressed = deflate_add($deflateContext, "Data to compress", ZLIB_NO_FLUSH);
|
||||
$compressed .= deflate_add($deflateContext, ", more data", ZLIB_NO_FLUSH);
|
||||
$compressed .= deflate_add($deflateContext, ", and even more data!", ZLIB_FINISH);
|
||||
|
||||
// Realiza uma expansão GZIP:
|
||||
$inflateContext = inflate_init(ZLIB_ENCODING_GZIP);
|
||||
$uncompressed = inflate_add($inflateContext, $compressed, ZLIB_NO_FLUSH);
|
||||
$uncompressed .= inflate_add($inflateContext, NULL, ZLIB_FINISH);
|
||||
echo $uncompressed;
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Data to compress, more data, and even more data!
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</chapter>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,20 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: felipe Status: ready --><!-- CREDITS: fernandoc -->
|
||||
<refentry xml:id="function.zlib-get-coding-type" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>zlib_get_coding_type</refname>
|
||||
<refpurpose>Retorna o tipo de codificação para a compressão de saída</refpurpose>
|
||||
</refnamediv>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 435885e2f78afd591a0b201a3bb7e8c8d1260165 Maintainer: ae Status: ready --><!-- CREDITS: fernandoc,felipe,ae -->
|
||||
<refentry xml:id="function.zlib-get-coding-type" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>zlib_get_coding_type</refname>
|
||||
<refpurpose>Retorna o tipo de codificação para a compressão de saída</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>zlib_get_coding_type</methodname>
|
||||
<void />
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Retorna o tipo de codificação usado para a compressão de saída.
|
||||
</para>
|
||||
<methodsynopsis>
|
||||
<type class="union"><type>string</type><type>false</type></type><methodname>zlib_get_coding_type</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Returns the coding type used for output compression.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
&no.function.parameters;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
@@ -22,19 +29,21 @@
|
||||
ou &false;.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member>
|
||||
A diretiva <link
|
||||
linkend="ini.zlib.output-compression">zlib.output_compression</link>
|
||||
</member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<para>
|
||||
<simplelist>
|
||||
<member>
|
||||
A diretiva <link
|
||||
linkend="ini.zlib.output-compression">zlib.output_compression</link>
|
||||
<!---->
|
||||
</member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: felipe Status: ready -->
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: a0ae28d3bc85f927c22649ebd9a590b921534b7d Maintainer: ae Status: ready --><!-- CREDITS: felipe, ae -->
|
||||
|
||||
<chapter xml:id="zlib.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
@@ -10,7 +10,7 @@
|
||||
<para>
|
||||
Este módulo usa as funções da <link xlink:href="&url.zlib;">zlib</link>
|
||||
por Jean-loup Gailly e Mark Adler. Você terá que usar uma versão zlib
|
||||
>= à 1.0.9 com este módulo.
|
||||
>= 1.2.0.4 com este módulo.
|
||||
</para>
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
@@ -29,6 +29,8 @@
|
||||
<para>
|
||||
Esta extensão define um ponteiro de arquivo resource retornado pela
|
||||
<function>gzopen</function>.
|
||||
Antes do PHP 8.0.0, recursos <literal>zlib.deflate</literal> e <literal>zlib.inflate</literal>
|
||||
também eram definidos.
|
||||
</para>
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
Reference in New Issue
Block a user