Skip to content

unserialization: Documented allowed-classes option with enums#5585

Open
edorian wants to merge 3 commits into
php:masterfrom
edorian:document-unserialize-enum-allowed-classes
Open

unserialization: Documented allowed-classes option with enums#5585
edorian wants to merge 3 commits into
php:masterfrom
edorian:document-unserialize-enum-allowed-classes

Conversation

@edorian
Copy link
Copy Markdown
Member

@edorian edorian commented May 26, 2026

Following the discussion in php/php-src#22059

As enums are technically classes, and the allowed-classes option set to "false" does not affect them this piece of clarification should help document the expected (and current) behavior.

Comment thread language/enumerations.xml Outdated
Comment thread language/enumerations.xml
Copy link
Copy Markdown
Member

@jordikroon jordikroon left a comment

Choose a reason for hiding this comment

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

Just a minor nit; Simpara should be used here too.

Comment thread language/enumerations.xml Outdated
Comment thread language/enumerations.xml Outdated
Comment thread reference/var/functions/unserialize.xml Outdated
- Link enums
- Para => Simppara
@edorian
Copy link
Copy Markdown
Member Author

edorian commented Jun 8, 2026

All review feedback should be incorporated now. Sorry for the delay.

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