Skip to content

Document boolean support for allowed_classes in unserialize - #4768

Merged
lacatoire merged 2 commits into
php:masterfrom
ImperialCrise:master
Aug 19, 2026
Merged

lacatoire merged 2 commits into
php:masterfrom
ImperialCrise:master

Conversation

@ImperialCrise

Copy link
Copy Markdown
Contributor
  • In appendices/migration84/incompatible.xml, update the description of the allowed_classes option to indicate it may be an array of class names or at boolean.
  • In reference/var/functions/unserialize.xml, clarify that unserialize() throws TypeError and ValueError if options.allowed_classes is not an array or boolean.

@ImperialCrise

Copy link
Copy Markdown
Contributor Author

This stems from the issue that arose because the documentation wasn’t clear:
php/php-src#19082

Comment thread reference/var/functions/unserialize.xml Outdated
@lacatoire

Copy link
Copy Markdown
Member

LGTM

Comment thread reference/var/functions/unserialize.xml Outdated
Comment thread appendices/migration84/incompatible.xml Outdated
Comment thread reference/var/functions/unserialize.xml Outdated
Comment thread reference/var/functions/unserialize.xml Outdated
ImperialCrise and others added 2 commits August 19, 2026 07:44
- In appendices/migration84/incompatible.xml, update the description of the
  allowed_classes option to indicate it may be an array of class names or at
  boolean.
- In reference/var/functions/unserialize.xml, clarify that unserialize() throws
  TypeError and ValueError if options.allowed_classes is not an array or boolean.
Co-authored-by: Louis-Arnaud <la.catoire@gmail.com>
@lacatoire

Copy link
Copy Markdown
Member

@ImperialCrise I rebased your branch onto current master. The CI failure had nothing to do with your changes: doc-en moved its DTD entities into entities/ and the workflow builds with doc-base at master. Thanks for your contribution.

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.

4 participants