Skip to content

doc-en と同期し、コード例の実行結果を実際の出力に修正(45ファイル・訳文の変更なし) - #424

Merged
KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-screen-output-fixes
Aug 1, 2026
Merged

doc-en と同期し、コード例の実行結果を実際の出力に修正(45ファイル・訳文の変更なし)#424
KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-screen-output-fixes

Conversation

@KentarouTakeda

Copy link
Copy Markdown
Collaborator

概要

php/doc-en@17c2385178 (php/doc-en#5718) への追従。

変更はすべてコード例の実行結果(<screen>)と、実行結果と食い違っていた
コード(<programlisting>)の修正で、訳文は変更していない。
個々の修正内容とその根拠は php/doc-en#5718 を参照。

対象ファイル(45件)

language(9件)

  • types/{array,callable}.xml
  • control-structures/{switch,foreach,goto,match}.xml
  • oop5/{basic,lazy-objects,overloading}.xml

reference(36件)

  • strings/functions/{explode,rtrim,ltrim,trim,str-word-count,strtok,htmlentities}.xml
  • array/functions/{array-map,array-fill,array-udiff-assoc,array-unique,array-unshift,natsort}.xml
  • dom/dom/characterdata/{before,remove,replacewith}.xml
  • dom/dom/htmldocument/createfromstring.xml
  • dom/domdocument/append.xml
  • dom/domdocumentfragment/replacechildren.xml
  • dom/domelement/{before,getattributenames}.xml
  • dom/domnode/getlineno.xml
  • datetime/formats.xml
  • datetime/functions/{date-default-timezone-get,date-sun-info}.xml
  • reflection/reflectionclass/{getdefaultproperties,getdoccomment}.xml
  • reflection/reflectionconstant/getshortname.xml
  • simplexml/functions/simplexml-load-string.xml
  • simplexml/simplexmlelement/{children,getDocNamespaces}.xml
  • libxml/functions/{libxml-get-errors,libxml-set-external-entity-loader}.xml
  • pcre/functions/preg-replace.xml
  • uri/uri/rfc3986/uri/withfragment.xml
  • xmlwriter/xmlwriter/writecdata.xml

その他

## 概要

php/doc-en@17c2385178 (php/doc-en#5718) への追従。

変更はすべてコード例の実行結果(`<screen>`)と、実行結果と食い違っていた
コード(`<programlisting>`)の修正で、訳文は変更していない。
個々の修正内容とその根拠は php/doc-en#5718 を参照。

## 対象ファイル(45件)

### language(9件)
- types/{array,callable}.xml
- control-structures/{switch,foreach,goto,match}.xml
- oop5/{basic,lazy-objects,overloading}.xml

### reference(36件)
- strings/functions/{explode,rtrim,ltrim,trim,str-word-count,strtok,htmlentities}.xml
- array/functions/{array-map,array-fill,array-udiff-assoc,array-unique,array-unshift,natsort}.xml
- dom/dom/characterdata/{before,remove,replacewith}.xml
- dom/dom/htmldocument/createfromstring.xml
- dom/domdocument/append.xml
- dom/domdocumentfragment/replacechildren.xml
- dom/domelement/{before,getattributenames}.xml
- dom/domnode/getlineno.xml
- datetime/formats.xml
- datetime/functions/{date-default-timezone-get,date-sun-info}.xml
- reflection/reflectionclass/{getdefaultproperties,getdoccomment}.xml
- reflection/reflectionconstant/getshortname.xml
- simplexml/functions/simplexml-load-string.xml
- simplexml/simplexmlelement/{children,getDocNamespaces}.xml
- libxml/functions/{libxml-get-errors,libxml-set-external-entity-loader}.xml
- pcre/functions/preg-replace.xml
- uri/uri/rfc3986/uri/withfragment.xml
- xmlwriter/xmlwriter/writecdata.xml

## その他

- `strings/functions/ltrim.xml` は EN-Revision の範囲に
  php/doc-en@46efd98053 (php/doc-en#5726) の `mb_ltrim` → `ltrim` も入るため併せて追従した。
- `strings/functions/strtok.xml` は追従対象の `<screen>` 内に ja 固有の余分な空行があったので除去した。
@KentarouTakeda
KentarouTakeda merged commit d7cf7cd into php:master Aug 1, 2026
2 checks passed
@KentarouTakeda
KentarouTakeda deleted the sync-screen-output-fixes branch August 1, 2026 10:40
KentarouTakeda added a commit that referenced this pull request Aug 1, 2026
…ール完訳) (#425)

* doc-en と同期し strings 関数の文法修正と <simpara> 化を反映(10ファイル)

php/doc-en#5726 への追従。大半は <para> → <simpara> のミラーで、訳文は変更していない。

原文の記述が変わったのは 2 件:

- strpbrk.xml — 原文の "for a characters"(characters そのものを探す)が誤りで、
  "for any of the characters in characters" に修正された。既訳も同じ誤りを
  引き継いでいたので追従した
- strncasecmp.xml — コード例の出力文字列の文法修正(are equals → are equal)

get-html-translation-table.xml は原文の &#x22 のセミコロン欠落修正にも追従した。

php/doc-en#5726 は 11 ファイルを変更しているが、ltrim.xml は #424 で取り込み済み。

* doc-en と同期し opcache_invalidate() がファイルキャッシュも無効化する旨に修正

php/doc-en#5723 への追従。

「インメモリキャッシュのみを無効化し、ファイルキャッシュは無効化しない」という
記述が誤りで、opcache.file_cache が有効なら対応するファイルキャッシュの
エントリも無効化される、に修正された。
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.

1 participant