xref: /PHP-8.1/ext/spl/tests/bug69845.phpt (revision f8d79582)
1--TEST--
2Fixed bug #69845 (ArrayObject with ARRAY_AS_PROPS broken)
3--FILE--
4<?php
5for ($i = 0; $i<2; $i++) {
6    $data = new \ArrayObject(new stdClass(), ArrayObject::ARRAY_AS_PROPS);
7    $data->itemType = 'bulletin';
8    var_dump(!is_null($data['itemType']));
9}
10?>
11--EXPECT--
12bool(true)
13bool(true)
14