Skip to content

[Sync-EN] Document boolean support for allowed_classes in unserialize() - #1789

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1639
Open

[Sync-EN] Document boolean support for allowed_classes in unserialize()#1789
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1639

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Syncs appendices/migration84/incompatible.xml and reference/var/functions/unserialize.xml with php/doc-en#4768 and php/doc-en#5797.

php/doc-en#4768: the 8.4.0 allowed_classes rule is stated correctly on both pages. It throws when the value is neither an array of class names nor a bool; the previous wording implied a bool was rejected too, while true and false are the documented ways to allow all or no classes.

php/doc-en#5797, on the migration page's MBString section:

  • The character index change is dated: it shipped in PHP 8.3.2, and it covers mb_strstr() as well as mb_substr().
  • The SJIS-mac paragraph is rewritten to say those indices differ from the SJIS-mac character indices for characters converting to several codepoints, instead of the vaguer "about 40 characters" remark.

EN-Revision bumped per file to the last upstream commit touching it.

Fixes: #1639

@lacatoire
lacatoire requested a review from a team as a code owner August 31, 2026 11:25
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.

[Sync EN] Document boolean support for allowed_classes in unserialize

1 participant