1--TEST--
2Don't recurse into USE_OTHER when checking for STD_PROP_LIST
3--FILE--
4<?php
5
6$a = new ArrayObject([1, 2, 3], ArrayObject::STD_PROP_LIST);
7$a->prop = 'a';
8$b = new ArrayObject($a, 0);
9$b->prop = 'b';
10var_dump((array) $b);
11$c = new ArrayObject($a);
12$c->prop = 'c';
13var_dump((array) $c);
14
15?>
16--EXPECTF--
17Deprecated: Creation of dynamic property ArrayObject::$prop is deprecated in %s on line %d
18
19Deprecated: Creation of dynamic property ArrayObject::$prop is deprecated in %s on line %d
20array(3) {
21  [0]=>
22  int(1)
23  [1]=>
24  int(2)
25  [2]=>
26  int(3)
27}
28
29Deprecated: Creation of dynamic property ArrayObject::$prop is deprecated in %s on line %d
30array(1) {
31  ["prop"]=>
32  string(1) "c"
33}
34