|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2018-10-18 12:22 UTC] cmb@php.net
-Package: SPL_Types
+Package: SPL related
[2020-03-05 13:42 UTC] cmb@php.net
[2020-03-05 14:01 UTC] cmb@php.net
[2020-03-06 08:12 UTC] cmb@php.net
[2020-03-06 08:12 UTC] cmb@php.net
-Status: Open
+Status: Closed
[2020-03-06 08:13 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 18:00:01 2025 UTC |
Description: ------------ The SplStack::unserialize() method adds elements to current object from serialized one instead of replacing Test script: --------------- <?php $stack = new SplStack(); $stack->push("one"); $stack->push("two"); $serialized = $stack->serialize(); echo $stack->count(), "\n"; $stack->unserialize($serialized); echo $stack->count(), "\n"; $stack->unserialize($serialized); echo $stack->count(), "\n"; Expected result: ---------------- 2 2 2 Actual result: -------------- 2 4 6