mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-20 19:08:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@171828 c90b9560-bf6c-de11-be94-00142212c4b1
77 lines
2.1 KiB
XML
77 lines
2.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.8 $ -->
|
|
<!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 -->
|
|
<refentry id="function.bzdecompress">
|
|
<refnamediv>
|
|
<refname>bzdecompress</refname>
|
|
<refpurpose>Decompresses bzip2 encoded data</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>bzdecompress</methodname>
|
|
<methodparam><type>string</type><parameter>source</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>small</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>bzdecompress</function> decompresses the
|
|
<parameter>source</parameter> string containing bzip2 encoded
|
|
data and returns it. If the optional parameter
|
|
<parameter>small</parameter> is &true;, an alternative
|
|
decompression algorithm will be used which uses less memory (the
|
|
maximum memory requirement drops to around 2300K) but works at
|
|
roughly half the speed. See the <ulink url="&url.bzip2;">bzip2
|
|
documentation</ulink> for more information about this feature.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1>
|
|
&reftitle.seealso;
|
|
<para>
|
|
<function>bzcompress</function>.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1>
|
|
&reftitle.examples;
|
|
<example>
|
|
<title>Decompressing a String</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$start_str = "This is not an honest face?";
|
|
$bzstr = bzcompress($start_str);
|
|
|
|
echo "Compressed String: ";
|
|
echo $bzstr;
|
|
echo "\n<br />\n";
|
|
|
|
$str = bzdecompress($bzstr);
|
|
echo "Decompressed String: ";
|
|
echo $str;
|
|
echo "\n<br />\n";
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- 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:"../../../../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
|
|
-->
|