Skip to content

Conversation

@nsfisis
Copy link
Contributor

@nsfisis nsfisis commented Jan 13, 2025

refs php/doc-en#4174

注: PHP 8.4 ではなく 8.3 の更新です。

PHP 8.3 での unserialize() の仕様変更を取り込みました。

"when the input string has unconsumed data" の訳について

この PR では、やや言葉を補って「入力された文字列の末尾に余計なデータがある場合」としました。

"unconsumed" は直訳すれば「未消費の」となりますが、構文解析などの文脈で入力を「消費する」という言い回しは、やや専門的で馴染みがないかもしれないと思い言い換えています。

検討した他の選択肢

  • 「入力された文字列に未消費のデータがある場合」
  • 「入力された文字列に未処理のデータがある場合」
  • 「入力された文字列にデータが残っている場合」
  • 「入力された文字列に余計なデータがある場合」

Copy link
Collaborator

@KentarouTakeda KentarouTakeda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。解りやすいです!

@KentarouTakeda KentarouTakeda merged commit b1f493b into php:master Jan 13, 2025
2 checks passed
@nsfisis nsfisis deleted the feature/4174-unserialize branch January 13, 2025 12:27
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.

2 participants