File tree Expand file tree Collapse file tree 12 files changed +46
-47
lines changed Expand file tree Collapse file tree 12 files changed +46
-47
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 8d09722b6d95d2545d5a4c9415c6955efc3a464e Maintainer: takagi Status: ready -->
44<refentry xml : id =" phar.copy" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >Phar::copy</refname >
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" Phar" >
13- <modifier >public</modifier > <type >bool </type ><methodname >Phar::copy</methodname >
13+ <modifier >public</modifier > <type >true </type ><methodname >Phar::copy</methodname >
1414 <methodparam ><type >string</type ><parameter >from</parameter ></methodparam >
1515 <methodparam ><type >string</type ><parameter >to</parameter ></methodparam >
1616 </methodsynopsis >
4848 <refsect1 role =" returnvalues" >
4949 &reftitle.returnvalues;
5050 <para >
51- 成功した場合に &true; を返します。しかし、より安全を期すなら
52- try/catch ブロック内で使用して例外がスローされないことを確認するといいでしょう。
51+ &return.true.always;
5352 </para >
5453 </refsect1 >
5554
8079 <programlisting role =" php" >
8180<![CDATA[
8281<?php
82+
8383try {
8484 $phar = new Phar('myphar.phar');
85+
8586 $phar['a'] = 'hi';
8687 $phar->copy('a', 'b');
87- echo $phar['b']; // 出力は "hi"
88+
89+ echo $phar['b']; // 出力は "phar://myphar.phar/b"
8890} catch (Exception $e) {
8991 // エラー処理
9092}
9395// エラー時には例外ではなく E_WARNINGS が発生します
9496copy('phar://myphar.phar/a', 'phar//myphar.phar/c');
9597echo file_get_contents('phar://myphar.phar/c'); // 出力は "hi"
98+
9699?>
97100]]>
98101 </programlisting >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: c8ba91f7e546462dc66c2a11a7eab6f55c93915b Maintainer: takagi Status: ready -->
44<refentry xml : id =" phar.decompressfiles" xmlns =" http://docbook.org/ns/docbook" >
55 <refnamediv >
66 <refname >Phar::decompressFiles</refname >
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" Phar" >
13- <modifier >public</modifier > <type >bool </type ><methodname >Phar::decompressFiles</methodname >
13+ <modifier >public</modifier > <type >true </type ><methodname >Phar::decompressFiles</methodname >
1414 <void />
1515 </methodsynopsis >
1616 &phar.write;
4242 <refsect1 role =" returnvalues" >
4343 &reftitle.returnvalues;
4444 <para >
45- &return.success ;
45+ &return.true.always ;
4646 </para >
4747 </refsect1 >
4848
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: c8ba91f7e546462dc66c2a11a7eab6f55c93915b Maintainer: takagi Status: ready -->
44<refentry xml : id =" phar.delmetadata" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >Phar::delMetadata</refname >
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" Phar" >
13- <modifier >public</modifier > <type >bool </type ><methodname >Phar::delMetadata</methodname >
13+ <modifier >public</modifier > <type >true </type ><methodname >Phar::delMetadata</methodname >
1414 <void />
1515 </methodsynopsis >
1616 &phar.write;
2929 <refsect1 role =" returnvalues" >
3030 &reftitle.returnvalues;
3131 <para >
32- 成功した場合に &true; を返します。しかし、より安全を期すなら
33- try/catch ブロック内で使用して例外がスローされないことを確認するといいでしょう。
32+ &return.true.always;
3433 </para >
3534 </refsect1 >
3635
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: c8ba91f7e546462dc66c2a11a7eab6f55c93915b Maintainer: takagi Status: ready -->
44<refentry xml : id =" phar.delete" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >Phar::delete</refname >
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" Phar" >
13- <modifier >public</modifier > <type >bool </type ><methodname >Phar::delete</methodname >
13+ <modifier >public</modifier > <type >true </type ><methodname >Phar::delete</methodname >
1414 <methodparam ><type >string</type ><parameter >localName</parameter ></methodparam >
1515 </methodsynopsis >
1616 &phar.write;
4141 <refsect1 role =" returnvalues" >
4242 &reftitle.returnvalues;
4343 <para >
44- 成功した場合に &true; を返します。
45- しかし、例外がスローされているかどうかを確認したうえで
46- 例外がなければ成功とみなすほうがいいでしょう。
44+ &return.true.always;
4745 </para >
4846 </refsect1 >
4947
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: c8ba91f7e546462dc66c2a11a7eab6f55c93915b Maintainer: takagi Status: ready -->
44<refentry xml : id =" phar.unlinkarchive" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >Phar::unlinkArchive</refname >
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" Phar" >
13- <modifier >final</modifier > <modifier >public</modifier > <modifier >static</modifier > <type >bool </type ><methodname >Phar::unlinkArchive</methodname >
13+ <modifier >final</modifier > <modifier >public</modifier > <modifier >static</modifier > <type >true </type ><methodname >Phar::unlinkArchive</methodname >
1414 <methodparam ><type >string</type ><parameter >filename</parameter ></methodparam >
1515 </methodsynopsis >
1616 <para >
3838 <refsect1 role =" returnvalues" >
3939 &reftitle.returnvalues;
4040 <para >
41- &return.success ;
41+ &return.true.always ;
4242 </para >
4343 </refsect1 >
4444
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: 8d09722b6d95d2545d5a4c9415c6955efc3a464e Maintainer: takagi Status: ready -->
44<refentry xml : id =" phardata.copy" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >PharData::copy</refname >
7- <refpurpose >phar アーカイブ内のファイルを、phar 内で別の新しいファイルとしてコピーする </refpurpose >
7+ <refpurpose >tar/zip アーカイブ内のファイルを、同じアーカイブ内で別の新しいファイルとしてコピーする </refpurpose >
88 </refnamediv >
99
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" PharData" >
13- <modifier >public</modifier > <type >bool </type ><methodname >PharData::copy</methodname >
13+ <modifier >public</modifier > <type >true </type ><methodname >PharData::copy</methodname >
1414 <methodparam ><type >string</type ><parameter >from</parameter ></methodparam >
1515 <methodparam ><type >string</type ><parameter >to</parameter ></methodparam >
1616 </methodsynopsis >
4747 <refsect1 role =" returnvalues" >
4848 &reftitle.returnvalues;
4949 <para >
50- 成功した場合に &true; を返します。しかし、より安全を期すなら
51- try/catch ブロック内で使用して例外がスローされないことを確認するといいでしょう。
50+ &return.true.always;
5251 </para >
5352 </refsect1 >
5453
7978 <programlisting role =" php" >
8079<![CDATA[
8180<?php
81+
8282try {
8383 $phar = new PharData('myphar.tar');
84+
8485 $phar['a'] = 'hi';
8586 $phar->copy('a', 'b');
87+
8688 echo $phar['b']; // 出力は "phar://myphar.tar/b"
8789} catch (Exception $e) {
8890 // エラー処理
9294// エラー時には例外ではなく E_WARNINGS が発生します
9395copy('phar://myphar.tar/a', 'phar//myphar.tar/c');
9496echo file_get_contents('phar://myphar.tar/c'); // 出力は "hi"
97+
9598?>
9699]]>
97100 </programlisting >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: c8ba91f7e546462dc66c2a11a7eab6f55c93915b Maintainer: takagi Status: ready -->
44<refentry xml : id =" phardata.decompressfiles" xmlns =" http://docbook.org/ns/docbook" >
55 <refnamediv >
66 <refname >PharData::decompressFiles</refname >
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" PharData" >
13- <modifier >public</modifier > <type >bool </type ><methodname >PharData::decompressFiles</methodname >
13+ <modifier >public</modifier > <type >true </type ><methodname >PharData::decompressFiles</methodname >
1414 <void />
1515 </methodsynopsis >
1616 &phar.write;
3939 <refsect1 role =" returnvalues" >
4040 &reftitle.returnvalues;
4141 <para >
42- &return.success ;
42+ &return.true.always ;
4343 </para >
4444 </refsect1 >
4545
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: c8ba91f7e546462dc66c2a11a7eab6f55c93915b Maintainer: takagi Status: ready -->
44<refentry xml : id =" phardata.delmetadata" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >PharData::delMetadata</refname >
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" PharData" >
13- <modifier >public</modifier > <type >bool </type ><methodname >PharData::delMetadata</methodname >
13+ <modifier >public</modifier > <type >true </type ><methodname >PharData::delMetadata</methodname >
1414 <void />
1515 </methodsynopsis >
1616 &phar.write;
2929 <refsect1 role =" returnvalues" >
3030 &reftitle.returnvalues;
3131 <para >
32- 成功した場合に &true; を返します。しかし、より安全を期すなら
33- 例外がスローされないことを確認するといいでしょう。
32+ &return.true.always;
3433 </para >
3534 </refsect1 >
3635
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: c8ba91f7e546462dc66c2a11a7eab6f55c93915b Maintainer: takagi Status: ready -->
44<refentry xml : id =" phardata.delete" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
55 <refnamediv >
66 <refname >PharData::delete</refname >
1010 <refsect1 role =" description" >
1111 &reftitle.description;
1212 <methodsynopsis role =" PharData" >
13- <modifier >public</modifier > <type >bool </type ><methodname >PharData::delete</methodname >
13+ <modifier >public</modifier > <type >true </type ><methodname >PharData::delete</methodname >
1414 <methodparam ><type >string</type ><parameter >localName</parameter ></methodparam >
1515 </methodsynopsis >
1616
4040 <refsect1 role =" returnvalues" >
4141 &reftitle.returnvalues;
4242 <para >
43- 成功した場合に &true; を返します。
44- しかし、例外がスローされているかどうかを確認したうえで
45- 例外がなければ成功とみなすほうがいいでしょう。
43+ &return.true.always;
4644 </para >
4745 </refsect1 >
4846
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: f03806fcd8fe03a0501bd40b6e3939ff6589a1d2 Maintainer: takagi Status: ready -->
3+ <!-- EN-Revision: c8ba91f7e546462dc66c2a11a7eab6f55c93915b Maintainer: takagi Status: ready -->
44<refentry xml : id =" pharfileinfo.compress" xmlns =" http://docbook.org/ns/docbook" >
55 <refnamediv >
66 <refname >PharFileInfo::compress</refname >
99 <refsect1 role =" description" >
1010 &reftitle.description;
1111 <methodsynopsis role =" PharFileInfo" >
12- <modifier >public</modifier > <type >bool </type ><methodname >PharFileInfo::compress</methodname >
12+ <modifier >public</modifier > <type >true </type ><methodname >PharFileInfo::compress</methodname >
1313 <methodparam ><type >int</type ><parameter >compression</parameter ></methodparam >
1414 </methodsynopsis >
1515
4747 <refsect1 role =" returnvalues" >
4848 &reftitle.returnvalues;
4949 <para >
50- &return.success ;
50+ &return.true.always ;
5151 </para >
5252 </refsect1 >
5353
You can’t perform that action at this time.
0 commit comments