Skip to content

Commit 5734828

Browse files
committed
Merge branch 'master' into tidy-84
2 parents 1bb4baf + 360102b commit 5734828

File tree

485 files changed

+28570
-12065
lines changed

Some content is hidden

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

485 files changed

+28570
-12065
lines changed

.github/workflows/integrate.yaml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ jobs:
1212
build:
1313
name: "Build"
1414

15-
runs-on: "ubuntu-20.04"
15+
runs-on: "ubuntu-24.04"
1616

1717
strategy:
1818
matrix:
1919
language:
2020
- "ja"
2121

2222
steps:
23+
- name: "Set up PHP"
24+
uses: "shivammathur/setup-php@v2"
25+
with:
26+
php-version: "8.3"
27+
extensions: "sqlite3"
28+
coverage: "none"
29+
2330
- name: "Checkout php/doc-${{ matrix.language }}"
2431
uses: "actions/checkout@v4"
2532
with:
@@ -39,5 +46,52 @@ jobs:
3946
path: "doc-base"
4047
repository: "php/doc-base"
4148

49+
- name: "Checkout php/phd"
50+
uses: "actions/checkout@v4"
51+
with:
52+
path: "phd"
53+
repository: "php/phd"
54+
4255
- name: "Build documentation for ${{ matrix.language }}"
43-
run: "php8.0 doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"
56+
run: "php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"
57+
58+
- name: "Render documentation for ${{ matrix.language }}"
59+
run: "php phd/render.php --docbook doc-base/.manual.xml --package PHP --format xhtml"
60+
61+
- name: "Save documentation for ${{ matrix.language }}"
62+
uses: "actions/upload-artifact@v4"
63+
with:
64+
name: "manual-html"
65+
path: "output/php-chunked-xhtml"
66+
retention-days: 7
67+
68+
textlint:
69+
name: "Textlint"
70+
71+
needs: ["build"]
72+
runs-on: "ubuntu-24.04"
73+
74+
steps:
75+
- name: "Checkout"
76+
uses: "actions/checkout@v4"
77+
78+
- name: "Install Node.js"
79+
uses: "actions/setup-node@v4"
80+
with:
81+
node-version: "22"
82+
cache: "npm"
83+
cache-dependency-path: "build/package-lock.json"
84+
85+
- name: "Download artifacts"
86+
uses: "actions/download-artifact@v4"
87+
with:
88+
name: "manual-html"
89+
path: "build/output"
90+
91+
- name: "Install textlint"
92+
run: "npm ci --no-audit"
93+
working-directory: "build"
94+
95+
- name: "Run textlint"
96+
run: "npx textlint --color ./output"
97+
working-directory: "build"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

README_Glossary.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
ここには、PHP マニュアル 日本語版で「統一した」訳語を当てている単語を記録しています。
44
以下の単語の訳がブレていたら、issue または Pull Request で報告してください。
55

6+
- visibility
7+
* 「アクセス権」で統一
8+
* protected/private/public を付けた、メソッドやプロパティが可視な範囲のこと
9+
* 但し、「非対称可視性プロパティ」(Asymmetric Property Visibility)は 例外
610
- extension
711
* 拡張モジュール ( [#24](https://github.com/php/doc-ja/issues/24) )
812
- internal function / builtin function

appendices/about.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ int strlen ( string $string )
189189
<entry>
190190
strlen() 関数の最初の(この場合は唯一の)引数が
191191
<parameter>string</parameter>という名前であり
192-
それは<type>文字列</type>である
192+
それは文字列(<type>string</type>)である
193193
</entry>
194194
</row>
195195
<row>

appendices/comparisons.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
</para>
1616
<para>
1717
この表を活用する前に、型とその意味について理解しておく必要があります。
18-
例えば、<literal>"42"</literal>は<type>文字列</type>ですが
19-
<literal>42</literal>は<type>整数</type>です。
20-
&false;<type>bool</type>ですが<literal>"false"</literal>は
21-
<type>文字列</type>です。
18+
例えば、<literal>"42"</literal>は <type>string</type> ですが
19+
<literal>42</literal>は <type>int</type> です。
20+
&false;<type>bool</type> ですが <literal>"false"</literal>
21+
<type>string</type> です。
2222
</para>
2323
<note>
2424
<para>

appendices/migration70/incompatible/other.xml

Lines changed: 11 additions & 1 deletion
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: 6d2f72b0f2d7fbda2e3aa79ab58f190b4cdac867 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 6a52dd81e3f791065b4b65a68d393012a7fdd858 Maintainer: takagi Status: ready -->
44

55
<sect2 xml:id="migration70.incompatible.other">
66
<title>下位互換性のないその他の変更</title>
@@ -373,6 +373,16 @@ switch (1) {
373373
</para>
374374
</sect3>
375375

376+
<sect3 xml:id="migration70.incompatible.other.break-continue-constant">
377+
<title>break と continue 文に定数は渡せなくなった</title>
378+
<para>
379+
<literal>break</literal> と <literal>continue</literal>
380+
文は定数を引数として渡せなくなりました。
381+
渡すと、
382+
<constant>E_COMPILE_ERROR</constant> が発生します。
383+
</para>
384+
</sect3>
385+
376386
<sect3 xml:id="migration70.incompatible.other.mhash">
377387
<title>Mhash はもう拡張モジュールではありません</title>
378388
<para>

appendices/migration74/incompatible.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@
4242

4343
<para>
4444
ファイルの最後の (改行が最後に付かない) <literal>&lt;?php</literal>
45-
タグは、PHPタグの開始タグとして解釈されるようになりました。以前は、短い形式の開始タグ <literal>&lt;?</literal> の後にリテラル
45+
タグは、PHPタグの開始タグとして解釈されるようになりました。以前は、短縮型の開始タグ <literal>&lt;?</literal> の後にリテラル
4646
<literal>php</literal>
47-
を続けたものとして解釈されるか、(<literal>short_open_tag=1</literal>
48-
の場合は) 文法エラー になるか、(<literal>short_open_tag=0</literal>
49-
の場合は) <literal>&lt;?php</literal>
50-
というリテラルとして解釈されていました。
47+
を続けたものとして解釈された結果文法エラーになる (<literal>short_open_tag=1</literal>
48+
の場合) か、<literal>&lt;?php</literal> という文字列リテラルとして解釈されていました (<literal>short_open_tag=0</literal>
49+
の場合) 。
5150
</para>
5251
</sect3>
5352

appendices/migration74/windows-support.xml

Lines changed: 11 additions & 2 deletions
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: c517cdf9196d0b6374b1112af979768c7cb391e9 Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: eee245cdbd89dc2fd908285f588e3b9e055924e5 Maintainer: mumumu Status: ready -->
44

55
<sect1 xml:id="migration74.windows-support" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<title>Windows のサポート</title>
@@ -17,7 +17,16 @@
1717
<title>CTRLキーの扱い</title>
1818
<para>
1919
<function>sapi_windows_set_ctrl_handler</function>
20-
関数でハンドラを設定することで、コンソールにおける CTRL+C や CTRL+BREAK
20+
関数でハンドラを設定することで、コンソールにおける
21+
<keycombo action='simul'>
22+
<keycap>CTRL</keycap>
23+
<keycap>C</keycap>
24+
</keycombo>
25+
26+
<keycombo action='simul'>
27+
<keycap>CTRL</keycap>
28+
<keycap>BREAK</keycap>
29+
</keycombo>
2130
をキャッチできるようになりました。
2231
</para>
2332
<para>

appendices/migration80.xml

Lines changed: 2 additions & 1 deletion
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: 9c422d0dd7aaa5864487d9526696dbff01a2052c Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: 0b48d83885dc23f3818284dd6c10f21890cdf72a Maintainer: mumumu Status: ready -->
44

55
<appendix xml:id="migration80" xmlns="http://docbook.org/ns/docbook">
66
<title>PHP 7.4.x から PHP 8.0.x への移行</title>
@@ -22,6 +22,7 @@
2222
</para>
2323

2424
&appendices.migration80.new-features;
25+
&appendices.migration80.new-classes;
2526
&appendices.migration80.incompatible;
2627
&appendices.migration80.deprecated;
2728
&appendices.migration80.other-changes;

appendices/migration80/incompatible.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision: 351500 $ -->
3-
<!-- EN-Revision: 61374bbe228e8e9c55a24aba59a1e2bb2a871148 Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: b94d63fc0884d83ba43433ab33cc4810d955bf6d Maintainer: mumumu Status: ready -->
44

55
<sect1 xml:id="migration80.incompatible" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<title>下位互換性のない変更点</title>
@@ -1885,7 +1885,7 @@ echo file_get_contents('http://example.org', false, $ctx);
18851885

18861886
<para>
18871887
<methodname>XMLReader::open</methodname>,
1888-
<methodname>XMLReader::xml</methodname> が staticメソッドになりました。
1888+
<methodname>XMLReader::XML</methodname> が staticメソッドになりました。
18891889
これらは、まだインスタンスメソッドとして呼び出すことが出来ますが、
18901890
クラスを継承し、これらのメソッドをオーバーライドする場合は、
18911891
それらは static として宣言する必要があります。

0 commit comments

Comments
 (0)