xref: /PHP-8.1/ext/spl/tests/bug40442.phpt (revision a555cc0b)
1--TEST--
2Bug #40442 (ArrayObject::offsetExists broke in 5.2.1, works in 5.2.0)
3--FILE--
4<?php
5$a = new ArrayObject();
6$a->offsetSet('property', 0);
7var_dump($a->offsetExists('property'));
8?>
9--EXPECT--
10bool(true)
11