Skip to content

Convert and move global.ent into doc-en - #5722

Merged
alfsb merged 2 commits into
php:masterfrom
alfsb:global-move
Aug 4, 2026
Merged

alfsb merged 2 commits into
php:masterfrom
alfsb:global-move

Conversation

@alfsb

@alfsb alfsb commented Jul 28, 2026

Copy link
Copy Markdown
Member

Move global.ent entirely into doc-en, all of it, including URLs, at least while manual split is not complete.

The only thing that is truly global resting in doc-base/entities/global.ent was URLs, but these are also "moved" here as to allow changes to be more easily done, without depending on PRs that cross repositories.

Tested on all languages. As an incidental first result, text-entitites.php found a duplication (url.libevent), already fixed. After, is to change all residual files in doc-base/entities to note these files are to be erased, when doc-ext recreates any (hopefully few) entities they need.

Comments and reviews are welcome. Plan to merge this in one week.

@alfsb alfsb changed the title Conver and move global.ent into doc-en Convert and move global.ent into doc-en Jul 28, 2026
@jordikroon

jordikroon commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

I was asking you if this was all, but then the full list of links came in.
This looks great. I don't have much to say about the comment, let's see if we get any feedback from translators positive or negative if any.

I have a strong feeling a big chunk of these links are in third-party extensions. So it would do good to see this file become shorter over time when we migrate those to doc-ext.

@alfsb

alfsb commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

After parts of manuals start moving into doc-ext, a tool that lists all entities, and then a tool that tries to build the manual with one entity erased, can be used to check unused entities in doc-en, and also translations, to shrink the language-snippets.ent.

I may create an entities/entities.remove.dtd file, to push these cases here, so no conversion into XML would be necessary.

@lacatoire

Copy link
Copy Markdown
Member

LGTM

@alfsb
alfsb merged commit 755a380 into php:master Aug 4, 2026
2 checks passed
@alfsb
alfsb deleted the global-move branch August 4, 2026 18:49
lacatoire pushed a commit to lacatoire/doc-extensions that referenced this pull request Aug 5, 2026
Cross-references whose target stays in the main manual cannot use a linkend
here, so they go through entities resolving to php.net links.

The file follows the format introduced in php/doc-en#5722, and the links are
composed from a url.php.manual.en entity rather than repeating the base URL.

The README gains a Creating this setup section for the build outside Docker.
KentarouTakeda added a commit to KentarouTakeda/php-doc-ja that referenced this pull request Aug 9, 2026
php/doc-en#5722(Convert and move global.ent into doc-en)で、削除予定の
エンティティ 3 件(reference.pdo-cubrid.entities.PDO、
reference.pdo-pgsql.entities.PDO、reference.pdo-sqlite.entities.PDO)が
このファイルに移された。

原文が「翻訳側は entities を空のままにし、revtag だけ更新する」と明記している
ファイルなので、EN-Revision だけを更新する。上記 3 件は ja ツリーからの参照が
ゼロであることを確認した。
KentarouTakeda added a commit to php/doc-ja that referenced this pull request Aug 9, 2026
* PDO・PDO_PGSQL・PDO_Firebird の PHP 8.4 の変更を追従

php/doc-en#5703(ext/pdo: PHP 8.4 changes across PDO, PDO_PGSQL and PDO_Firebird)に追従。

- reference/pdo/pdo/prepare.xml — ドライバ固有の SQL パーサーの説明を追加。
  あわせて 8.4.0 より前のパーサーについての注記を過去形にする
- reference/pdo/pdo/getattribute.xml — 取得できる属性の一覧を原文に合わせて差し替え
- reference/pdo/pdostatement/getattribute.xml — Pdo\Pgsql::ATTR_RESULT_MEMORY_SIZE を追加
- reference/pdo_pgsql/reference.xml — DSN の認証情報がコンストラクタの引数より
  優先される旨の注記を追加
- reference/pdo_pgsql/pdo-pgsql.xml — ドル記号で囲まれた文字列の中で疑問符を
  ?? としてエスケープすることが非推奨になった旨の注記を追加
- reference/pdo_pgsql/configure.xml — libpq 10.0 以降が必要になった旨を追加
- reference/pdo_firebird/configure.xml — C++ コンパイラと fbclient 3.0 以降が
  必要になった旨を追加

* SimpleXML で暗黙の巻き戻しがなくなったことを追従

php/doc-en#5737(ext/simplexml: Document that get methods and string casts no
longer implicitly rewind)に追従。PHP 8.4.0 以降、値を取得するメソッドの呼び出しと
string へのキャストがイテレータを暗黙的に巻き戻さなくなった旨を追加する。

- reference/simplexml/simplexmlelement.xml
- reference/simplexml/simplexmlelement/rewind.xml

* language/basic-syntax.xml を原文の修正に追従

- php/doc-en#5724(Fix reference to non-existent "example three")
  短縮タグの説明が、存在しない「例 3」を参照していた誤りを修正する。
  このページに example は 1 つしかなく、その中で 3 つのコードが手で番号付け
  されているだけなので、原文は「上の例の 3 番目」を指す表現に変わった。
  あわせて当該段落が para から simpara になったのを反映する。

- php/doc-en#5747(Example emits warning unrelated to content)
  「条件を使った高度なエスケープ」のコード例が、未定義の変数 $expression を
  参照していて内容と無関係な警告を出していたのを修正する。

* entities/entities.remove.ent の revtag を更新

php/doc-en#5722(Convert and move global.ent into doc-en)で、削除予定の
エンティティ 3 件(reference.pdo-cubrid.entities.PDO、
reference.pdo-pgsql.entities.PDO、reference.pdo-sqlite.entities.PDO)が
このファイルに移された。

原文が「翻訳側は entities を空のままにし、revtag だけ更新する」と明記している
ファイルなので、EN-Revision だけを更新する。上記 3 件は ja ツリーからの参照が
ゼロであることを確認した。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants