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--EXPECT-- 17array(3) { 18 [0]=> 19 int(1) 20 [1]=> 21 int(2) 22 [2]=> 23 int(3) 24} 25array(1) { 26 ["prop"]=> 27 string(1) "c" 28} 29