xref: /PHP-8.0/ext/spl/tests/bug75673.phpt (revision b8427729)
1--TEST--
2Bug #75673 (SplStack::unserialize() behavior)
3--FILE--
4<?php
5$stack = new SplStack();
6$stack->push("one");
7$stack->push("two");
8
9$serialized = $stack->serialize();
10var_dump($stack->count());
11$stack->unserialize($serialized);
12var_dump($stack->count());
13$stack->unserialize($serialized);
14var_dump($stack->count());
15?>
16--EXPECT--
17int(2)
18int(2)
19int(2)
20