1--TEST--
2Check Serialization/unserialization
3--FILE--
4<?php
5$q = new SplQueue();
6
7$q->enqueue("a");
8$q->enqueue("b");
9
10var_dump($q, $ss = serialize($q), unserialize($ss));
11
12$s = new SplStack();
13
14$s->push("a");
15$s->push("b");
16
17var_dump($s, $ss = serialize($s), unserialize($ss));
18?>
19==END==
20--EXPECTF--
21object(SplQueue)#%d (2) {
22  ["flags":"SplDoublyLinkedList":private]=>
23  int(4)
24  ["dllist":"SplDoublyLinkedList":private]=>
25  array(2) {
26    [0]=>
27    string(1) "a"
28    [1]=>
29    string(1) "b"
30  }
31}
32string(42) "C:8:"SplQueue":22:{i:4;:s:1:"a";:s:1:"b";}"
33object(SplQueue)#%d (2) {
34  ["flags":"SplDoublyLinkedList":private]=>
35  int(4)
36  ["dllist":"SplDoublyLinkedList":private]=>
37  array(2) {
38    [0]=>
39    string(1) "a"
40    [1]=>
41    string(1) "b"
42  }
43}
44object(SplStack)#%d (2) {
45  ["flags":"SplDoublyLinkedList":private]=>
46  int(6)
47  ["dllist":"SplDoublyLinkedList":private]=>
48  array(2) {
49    [0]=>
50    string(1) "a"
51    [1]=>
52    string(1) "b"
53  }
54}
55string(42) "C:8:"SplStack":22:{i:6;:s:1:"a";:s:1:"b";}"
56object(SplStack)#%d (2) {
57  ["flags":"SplDoublyLinkedList":private]=>
58  int(6)
59  ["dllist":"SplDoublyLinkedList":private]=>
60  array(2) {
61    [0]=>
62    string(1) "a"
63    [1]=>
64    string(1) "b"
65  }
66}
67==END==
68