doc-en と同期し、コード例の実行結果を実際の出力に修正(45ファイル・訳文の変更なし) - #424
Merged
KentarouTakeda merged 1 commit intoAug 1, 2026
Conversation
## 概要 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
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 は原文の " のセミコロン欠落修正にも追従した。 php/doc-en#5726 は 11 ファイルを変更しているが、ltrim.xml は #424 で取り込み済み。 * doc-en と同期し opcache_invalidate() がファイルキャッシュも無効化する旨に修正 php/doc-en#5723 への追従。 「インメモリキャッシュのみを無効化し、ファイルキャッシュは無効化しない」という 記述が誤りで、opcache.file_cache が有効なら対応するファイルキャッシュの エントリも無効化される、に修正された。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
php/doc-en@17c2385178 (php/doc-en#5718) への追従。
変更はすべてコード例の実行結果(
<screen>)と、実行結果と食い違っていたコード(
<programlisting>)の修正で、訳文は変更していない。個々の修正内容とその根拠は php/doc-en#5718 を参照。
対象ファイル(45件)
language(9件)
reference(36件)
その他
strings/functions/ltrim.xmlは EN-Revision の範囲にphp/doc-en@46efd98053 (Fix grammar in strings functions doc-en#5726) の
mb_ltrim→ltrimも入るため併せて追従した。strings/functions/strtok.xmlは追従対象の<screen>内に ja 固有の余分な空行があったので除去した。