Skip to content

Commit b8f1ab6

Browse files
author
TAKAGI Masahiro
committed
Sync with en
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@334609 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 90077aa commit b8f1ab6

File tree

86 files changed

+135
-1925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+135
-1925
lines changed

reference/apache/functions/getallheaders.xml

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 515b45e67644ecb6b3958ed86c540481a0da0398 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: hirokawa Status: ready -->
44
<!-- CREDITS: shimooka -->
55
<refentry xml:id="function.getallheaders" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -65,14 +65,6 @@
6565
&note.apache.nsapi-module;
6666
</entry>
6767
</row>
68-
<row>
69-
<entry>4.3.0</entry>
70-
<entry>
71-
<function>apache_request_headers</function>のエイリアスとなりました。
72-
これは、基本的に関数名の変更にあたります。この関数は、
73-
Apache モジュールの場合のみ動作します。
74-
</entry>
75-
</row>
7668
</tbody>
7769
</tgroup>
7870
</informaltable>

reference/array/functions/array-rand.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 99cec05cd4ab0462a51a9b02a8cc55c084fc46e2 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: hirokawa Status: ready -->
44
<refentry xml:id="function.array-rand" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>array_rand</refname>
@@ -70,7 +70,6 @@
7070
結果の配列のキーがシャッフルされなくなりました。
7171
</entry>
7272
</row>
73-
&changelog.randomseed;
7473
</tbody>
7574
</tgroup>
7675
</informaltable>

reference/array/functions/array-sum.xml

+1-26
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: hirokawa Status: ready -->
44
<refentry xml:id="function.array-sum" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>array_sum</refname>
@@ -39,31 +39,6 @@
3939
float として返します。
4040
</para>
4141
</refsect1>
42-
<refsect1 role="changelog">
43-
&reftitle.changelog;
44-
<para>
45-
<informaltable>
46-
<tgroup cols="2">
47-
<thead>
48-
<row>
49-
<entry>&Version;</entry>
50-
<entry>&Description;</entry>
51-
</row>
52-
</thead>
53-
<tbody>
54-
<row>
55-
<entry>4.2.1</entry>
56-
<entry>
57-
4.2.1 より前のバージョンの PHP は、渡された配列自体を修正し、
58-
文字列を数値 (これは値にもよるが多くの場合ゼロとなります)
59-
に変換していました。
60-
</entry>
61-
</row>
62-
</tbody>
63-
</tgroup>
64-
</informaltable>
65-
</para>
66-
</refsect1>
6742
<refsect1 role="examples">
6843
&reftitle.examples;
6944
<para>

reference/array/functions/count.xml

+1-24
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 3ce14fde5cd5f15171a7ed2b64fdc7bd652c3842 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: hirokawa Status: ready -->
44
<!-- CREDITS: shimooka -->
55
<refentry xml:id="function.count" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -84,29 +84,6 @@
8484
</para>
8585
</caution>
8686
</refsect1>
87-
<refsect1 role="changelog">
88-
&reftitle.changelog;
89-
<para>
90-
<informaltable>
91-
<tgroup cols="2">
92-
<thead>
93-
<row>
94-
<entry>&Version;</entry>
95-
<entry>&Description;</entry>
96-
</row>
97-
</thead>
98-
<tbody>
99-
<row>
100-
<entry>4.2.0</entry>
101-
<entry>
102-
オプションのパラメータ <parameter>mode</parameter> が追加されました。
103-
</entry>
104-
</row>
105-
</tbody>
106-
</tgroup>
107-
</informaltable>
108-
</para>
109-
</refsect1>
11087
<refsect1 role="examples">
11188
&reftitle.examples;
11289
<para>

reference/array/functions/in-array.xml

+1-24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 2fc10c7557bb781869c15492aba877eb33ac23c6 Maintainer: hirokawa Status: ready -->
2+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: hirokawa Status: ready -->
33
<!-- $Revision$ -->
44
<refentry xml:id="function.in-array" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
@@ -68,29 +68,6 @@
6868
&true;、それ以外の場合は、&false; を返します。
6969
</para>
7070
</refsect1>
71-
<refsect1 role="changelog">
72-
&reftitle.changelog;
73-
<para>
74-
<informaltable>
75-
<tgroup cols="2">
76-
<thead>
77-
<row>
78-
<entry>&Version;</entry>
79-
<entry>&Description;</entry>
80-
</row>
81-
</thead>
82-
<tbody>
83-
<row>
84-
<entry>4.2.0</entry>
85-
<entry>
86-
<parameter>needle</parameter> に配列を使用できるようになりました。
87-
</entry>
88-
</row>
89-
</tbody>
90-
</tgroup>
91-
</informaltable>
92-
</para>
93-
</refsect1>
9471
<refsect1 role="examples">
9572
&reftitle.examples;
9673
<para>

reference/array/functions/range.xml

+12-45
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 2d7dc57eb110e453c416d09a4e6a19de1506614c Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: takagi Status: ready -->
44
<!-- CREDITS: hirokawa,shimooka -->
55
<refentry xml:id="function.range" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -59,48 +59,6 @@
5959
<parameter>end</parameter> までの整数の配列を返します。
6060
</para>
6161
</refsect1>
62-
<refsect1 role="changelog">
63-
&reftitle.changelog;
64-
<para>
65-
<informaltable>
66-
<tgroup cols="2">
67-
<thead>
68-
<row>
69-
<entry>&Version;</entry>
70-
<entry>&Description;</entry>
71-
</row>
72-
</thead>
73-
<tbody>
74-
<row>
75-
<entry>5.0.0</entry>
76-
<entry>
77-
オプションのパラメータ <parameter>step</parameter> が追加されました。
78-
</entry>
79-
</row>
80-
<row>
81-
<entry>4.1.0 から 4.3.2</entry>
82-
<entry>
83-
PHP 4.1.0 から 4.3.2 までは、<function>range</function>
84-
は数値文字を文字 (string) として認識し、数値 (integer) としては認識しません。
85-
その代わり、文字列シーケンスが使用されます。例えば、
86-
<literal>"4242"</literal> は <literal>"4"</literal> として扱われます。
87-
</entry>
88-
</row>
89-
<row>
90-
<entry>4.1.0</entry>
91-
<entry>
92-
4.1.0 より前のバージョンでは、<function>range</function> 関数は、
93-
昇順の整数配列のみを生成しました。
94-
文字シーケンス及び降順の配列のサポートが 4.1.0 で追加されました。
95-
文字のシーケンスは一文字のみに限定されます。それより長い文字が指定された場合は、
96-
最初の文字のみが使用されます。
97-
</entry>
98-
</row>
99-
</tbody>
100-
</tgroup>
101-
</informaltable>
102-
</para>
103-
</refsect1>
10462
<refsect1 role="examples">
10563
&reftitle.examples;
10664
<para>
@@ -114,13 +72,13 @@ foreach (range(0, 12) as $number) {
11472
echo $number;
11573
}
11674
117-
// step 引数は PHP 5.0.0 以降で使用できます
75+
// step 引数は
11876
// array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
11977
foreach (range(0, 100, 10) as $number) {
12078
echo $number;
12179
}
12280
123-
// 文字列シーケンスは PHP 4.1.0 以降で使用できます
81+
// 文字列シーケンス
12482
// array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i');
12583
foreach (range('a', 'i') as $letter) {
12684
echo $letter;
@@ -135,6 +93,15 @@ foreach (range('c', 'a') as $letter) {
13593
</example>
13694
</para>
13795
</refsect1>
96+
<refsect1 role="notes">
97+
&reftitle.notes;
98+
<note>
99+
<para>
100+
文字列シーケンスは、長さが 1 のものだけに限られます。
101+
2 文字以上を指定した場合は、最初の 1 文字だけを使います。
102+
</para>
103+
</note>
104+
</refsect1>
138105
<refsect1 role="seealso">
139106
&reftitle.seealso;
140107
<para>

reference/array/functions/shuffle.xml

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: e55c6e7b5bf35128d869f94b582f0d0a24ca64b6 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: hirokawa Status: ready -->
44
<!-- CREDITS: shimooka -->
55
<refentry xml:id="function.shuffle" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -57,24 +57,6 @@ foreach ($numbers as $number) {
5757
</example>
5858
</para>
5959
</refsect1>
60-
<refsect1 role="changelog">
61-
&reftitle.changelog;
62-
<para>
63-
<informaltable>
64-
<tgroup cols="2">
65-
<thead>
66-
<row>
67-
<entry>&Version;</entry>
68-
<entry>&Description;</entry>
69-
</row>
70-
</thead>
71-
<tbody>
72-
&changelog.randomseed;
73-
</tbody>
74-
</tgroup>
75-
</informaltable>
76-
</para>
77-
</refsect1>
7860
<refsect1 role="notes">
7961
&reftitle.notes;
8062
&note.no-key-association;

reference/calendar/functions/easter-date.xml

+3-28
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: f8f64b7216ce7edd0056c3ee3ccd06db3aef6e61 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: hirokawa Status: ready -->
44
<refentry xml:id="function.easter-date" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>easter_date</refname>
@@ -11,7 +11,7 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>int</type><methodname>easter_date</methodname>
14-
<methodparam choice="opt"><type>int</type><parameter>year</parameter></methodparam>
14+
<methodparam choice="opt"><type>int</type><parameter>year</parameter><initializer>date("Y")</initializer></methodparam>
1515
</methodsynopsis>
1616
<para>
1717
指定した年yearにおける復活祭の真夜中のUnix時を返します。
@@ -45,7 +45,7 @@
4545
<term><parameter>year</parameter></term>
4646
<listitem>
4747
<para>
48-
1970 から 2037 までの年。
48+
1970 から 2037 までの年。省略した場合は、ローカルタイムにおける現在の年を使います。
4949
</para>
5050
</listitem>
5151
</varlistentry>
@@ -60,31 +60,6 @@
6060
</para>
6161
</refsect1>
6262

63-
<refsect1 role="changelog">
64-
&reftitle.changelog;
65-
<para>
66-
<informaltable>
67-
<tgroup cols="2">
68-
<thead>
69-
<row>
70-
<entry>&Version;</entry>
71-
<entry>&Description;</entry>
72-
</row>
73-
</thead>
74-
<tbody>
75-
<row>
76-
<entry>4.3.0</entry>
77-
<entry>
78-
<parameter>year</parameter>パラメータはオプションとなり
79-
省略された場合には、ローカル時間に基づく現在の年がデフォルトとなります。
80-
</entry>
81-
</row>
82-
</tbody>
83-
</tgroup>
84-
</informaltable>
85-
</para>
86-
</refsect1>
87-
8863
<refsect1 role="examples">
8964
&reftitle.examples;
9065
<para>

reference/calendar/functions/easter-days.xml

+3-34
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: bf0b399e387692937f55344ee2334b7948bb445e Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 8b5940cadeb4f1c8492f4a7f70743a2be807cf39 Maintainer: hirokawa Status: ready -->
44
<refentry xml:id="function.easter-days" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>easter_days</refname>
@@ -11,7 +11,7 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>int</type><methodname>easter_days</methodname>
14-
<methodparam choice="opt"><type>int</type><parameter>year</parameter></methodparam>
14+
<methodparam choice="opt"><type>int</type><parameter>year</parameter><initializer>date("Y")</initializer></methodparam>
1515
<methodparam choice="opt"><type>int</type><parameter>method</parameter><initializer>CAL_EASTER_DEFAULT</initializer></methodparam>
1616
</methodsynopsis>
1717
<para>
@@ -46,7 +46,7 @@
4646
<term><parameter>year</parameter></term>
4747
<listitem>
4848
<para>
49-
正の数値で表した年。
49+
正の数値で表した年。省略した場合は、ローカルタイムにおける現在の年を使います。
5050
</para>
5151
</listitem>
5252
</varlistentry>
@@ -72,37 +72,6 @@
7272
</para>
7373
</refsect1>
7474

75-
<refsect1 role="changelog">
76-
&reftitle.changelog;
77-
<para>
78-
<informaltable>
79-
<tgroup cols="2">
80-
<thead>
81-
<row>
82-
<entry>&Version;</entry>
83-
<entry>&Description;</entry>
84-
</row>
85-
</thead>
86-
<tbody>
87-
<row>
88-
<entry>4.3.0</entry>
89-
<entry>
90-
<parameter>year</parameter> はオプションのパラメータとなり、
91-
もし指定されなかった場合は、地方時にもとづいた現在の年がデフォルトとなります。
92-
</entry>
93-
</row>
94-
<row>
95-
<entry>4.3.0</entry>
96-
<entry>
97-
<parameter>method</parameter> パラメータが追加されました。
98-
</entry>
99-
</row>
100-
</tbody>
101-
</tgroup>
102-
</informaltable>
103-
</para>
104-
</refsect1>
105-
10675
<refsect1 role="examples">
10776
&reftitle.examples;
10877
<para>

0 commit comments

Comments
 (0)