Skip to content

Fix #75673: SplStack::unserialize() behavior - #5238

Closed
cmb69 wants to merge 1 commit into
php:PHP-7.3from
cmb69:cmb/75673
Closed

cmb69 wants to merge 1 commit into
php:PHP-7.3from
cmb69:cmb/75673

Conversation

@cmb69

@cmb69 cmb69 commented Mar 5, 2020

Copy link
Copy Markdown
Member

Even though SplStack::unserialize() is not supposed to be called on
an already constructed instance, it is probably better if the method
clears the stack before actually unserializing.


It's certainly debatable whether the current behavior is a bug at all, but still might be worth to fix/improve; maybe for master only, though.

Even though `SplStack::unserialize()` is not supposed to be called on
an already constructed instance, it is probably better if the method
clears the stack before actually unserializing.
@cmb69

cmb69 commented Mar 6, 2020

Copy link
Copy Markdown
Member Author

Thanks! Applied as b842772.

@cmb69 cmb69 closed this Mar 6, 2020
@cmb69
cmb69 deleted the cmb/75673 branch March 6, 2020 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants