1--TEST--
2SPL: ArrayObject::getFlags() - ensure flags are passed on to nested array objects and iterators.
3--FILE--
4<?php
5$ao = new ArrayObject(array(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS);
6var_dump($ao->getFlags());
7
8$ao2 = new ArrayObject($ao);
9var_dump($ao2->getFlags());
10var_dump($ao2->getIterator()->getFlags());
11
12$ai = new ArrayIterator($ao);
13var_dump($ai->getFlags());
14
15$ao2 = new ArrayObject($ao, 0);
16var_dump($ao2->getFlags());
17
18?>
19--EXPECTF--
20int(3)
21int(3)
22int(3)
23int(3)
24int(0)