1--TEST--
2SPL: ArrayObject::__construct: check impact of ArrayObject::STD_PROP_LIST on var_dump.
3--FILE--
4<?php
5class MyArrayObject extends ArrayObject {
6    private $priv1 = 'secret1';
7    public $pub1 = 'public1';
8}
9
10$ao = new ArrayObject(array(1,2,3));
11$ao->p = 1;
12var_dump($ao);
13
14$ao = new ArrayObject(array(1,2,3), ArrayObject::STD_PROP_LIST);
15$ao->p = 1;
16var_dump($ao);
17
18$ao = new MyArrayObject(array(1,2,3));
19var_dump($ao);
20
21$ao = new MyArrayObject(array(1,2,3), ArrayObject::STD_PROP_LIST);
22var_dump($ao);
23?>
24--EXPECTF--
25Deprecated: Creation of dynamic property ArrayObject::$p is deprecated in %s on line %d
26object(ArrayObject)#1 (2) {
27  ["p"]=>
28  int(1)
29  ["storage":"ArrayObject":private]=>
30  array(3) {
31    [0]=>
32    int(1)
33    [1]=>
34    int(2)
35    [2]=>
36    int(3)
37  }
38}
39
40Deprecated: Creation of dynamic property ArrayObject::$p is deprecated in %s on line %d
41object(ArrayObject)#2 (2) {
42  ["p"]=>
43  int(1)
44  ["storage":"ArrayObject":private]=>
45  array(3) {
46    [0]=>
47    int(1)
48    [1]=>
49    int(2)
50    [2]=>
51    int(3)
52  }
53}
54object(MyArrayObject)#1 (3) {
55  ["priv1":"MyArrayObject":private]=>
56  string(7) "secret1"
57  ["pub1"]=>
58  string(7) "public1"
59  ["storage":"ArrayObject":private]=>
60  array(3) {
61    [0]=>
62    int(1)
63    [1]=>
64    int(2)
65    [2]=>
66    int(3)
67  }
68}
69object(MyArrayObject)#2 (3) {
70  ["priv1":"MyArrayObject":private]=>
71  string(7) "secret1"
72  ["pub1"]=>
73  string(7) "public1"
74  ["storage":"ArrayObject":private]=>
75  array(3) {
76    [0]=>
77    int(1)
78    [1]=>
79    int(2)
80    [2]=>
81    int(3)
82  }
83}
84