fujimoto                Fri Dec 28 10:30:22 2001 EDT

  Modified files:              
    /phpdoc/ja/functions        zlib.xml 
  Log:
  updated translation.
  
  
Index: phpdoc/ja/functions/zlib.xml
diff -u phpdoc/ja/functions/zlib.xml:1.14 phpdoc/ja/functions/zlib.xml:1.15
--- phpdoc/ja/functions/zlib.xml:1.14   Wed Dec 12 15:53:54 2001
+++ phpdoc/ja/functions/zlib.xml        Fri Dec 28 10:30:21 2001
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-
+<!-- $Revision: 1.15 $ -->
  <reference id="ref.zlib">
   <title>zlib圧縮関数</title>
   <titleabbrev>Zlib</titleabbrev>
@@ -16,6 +16,19 @@
     <link linkend="ref.filesystem">filesystem</link> 関数を含んでいます。
     
(非圧縮のファイルも使用可能ですが、ソケットは使用できません)
    </para>
+   <note>
+    <para>
+     
+バージョン4.0.4-devで.gzファイルに対応したfopen-wrapperを導入しました。
+     これにより<function>fopen</function>に'zlib:'をプレフィクスとした
+     
+ファイル名又はパス名を渡すことで、通常のf*()関数で圧縮されたファイルに
+     透過的にアクセスすることが出来ます。
+    </para>
+    <para>
+     
+この機能を利用するには<literal>fopencookie()</literal>関数を提供する
+     
+Cのランタイムライブラリが必要です。現在私の知る限りでは、GNU
+ libcが
+     この機能を提供する唯一のライブラリです。
+    </para>
+   </note>
    
    <sect1 id="zlib-example">
     <title>簡単なコードの例</title>
@@ -26,9 +39,10 @@
     <example>
      <title>簡単な Zlib の例</title>
      <programlisting role="php">
-&lt;?php
+<![CDATA[
+<?php
 $filename = tempnam ('/tmp', 'zlibtest').'.gz';
-print "&lt;html>\n&lt;head>&lt;/head>\n&lt;body>\n&lt;pre>\n";
+print "<html>\n<head></head>\n<body>\n<pre>\n";
 $s = "Only a test, test, test, test, test, test, test, test!\n";
 // 最大限の圧縮を指定して書きこみ用にファイルをオープン
 $zp = gzopen ($filename, "w9");
@@ -48,8 +62,9 @@
         echo "Error with zlib functions!";
 }
 unlink ($filename);
-print "&lt;/pre>\n&lt;/h1>&lt;/body>\n&lt;/html>\n";
+print "</pre>\n</h1></body>\n</html>\n";
 ?>
+]]>
      </programlisting>
     </example>
    </sect1>
@@ -265,9 +280,7 @@
       <paramdef>string <parameter>filename</parameter></paramdef>
       <paramdef>string <parameter>mode</parameter></paramdef>
       <paramdef>int 
-       <parameter>
-       <replaceable><optional>use_include_path</optional></replaceable>
-       </parameter>
+       <parameter><optional>use_include_path</optional></parameter>
       </paramdef>
      </funcprototype>
     </funcsynopsis>
@@ -282,7 +295,7 @@
      説明を参照下さい。) 
     </para>
     <para>
-     Gzopen 
は、gzipフォーマットでないファイルの読み込みについても
+     gzopen 
+は、gzipフォーマットでないファイルの読み込みについても
      使用することができます。
      
この場合、<function>gzread</function>は、ファイルを解凍せずに直接読み
      込まれます。
@@ -304,7 +317,9 @@
      <example>
       <title><function>gzopen</function>の例</title>
       <programlisting role="php">
+<![CDATA[
 $fp = gzopen ("/tmp/file.gz", "r");
+]]>
       </programlisting>
      </example>
     </para>
@@ -399,11 +414,13 @@
     <para>
      <informalexample>
       <programlisting role="php">
+<![CDATA[
 // gz ファイルの内容を文字列に読み込みます
 $filename = "/usr/local/something.txt.gz";
-$zd = gzopen ( $filename, "r" );
-$contents = gzread ( $zd, 10000 );
-gzclose ( $zd );
+$zd = gzopen ($filename, "r");
+$contents = gzread ($zd, 10000);
+gzclose ($zd);
+]]>
       </programlisting>
      </informalexample>
     </para>
@@ -551,7 +568,7 @@
      引数<parameter>length</parameter>が指定された場合、
      <link linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>
      設定オプションは無視されて <parameter>string</parameter> から
-     ィéッシュが取り除かれなくなることに注意してください。
+     スラッシュが取り除かれなくなることに注意してください。
     </simpara>
     <simpara>
      <function>gzread</function>、<function>gzopen</function>、
@@ -776,13 +793,15 @@
      <example>
       <title>gzipファイルを作成する</title>
       <programlisting role="php">
-&lt;?php
+<![CDATA[
+<?php
 $data = implode("", "bigfile.txt");
 $gzdata = gzencode($data, 9);
 $fp = fopen("bigfile.txt.gz", "w");
 fwrite($fp, $gzdata);
 fclose($fp);
-?&gt;
+?>
+]]>
       </programlisting>
      </example>
     </para>


Reply via email to