]> granicus.if.org Git - php/commit
Fix #75673: SplStack::unserialize() behavior
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 5 Mar 2020 13:57:27 +0000 (14:57 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 6 Mar 2020 08:09:49 +0000 (09:09 +0100)
commitb84277297ae18f11055a5731a881a347df8d76b9
tree97a4ef7146167422554769bd3cdc1a575418c5cf
parent9dda3b9eb2d47bda7805f02c417ead54487d655e
Fix #75673: SplStack::unserialize() behavior

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.
NEWS
ext/spl/spl_dllist.c
ext/spl/tests/bug75673.phpt [new file with mode: 0644]