xref: /PHP-7.3/ext/spl/tests/bug70852.phpt (revision 1c0622a4)
1--TEST--
2Bug #70852 Segfault getting NULL offset of an ArrayObject
3--FILE--
4<?php
5$y = new ArrayObject();
6
7var_dump($y[NULL]);
8var_dump($y[NULL]++);
9?>
10===DONE===
11--EXPECTF--
12Notice: Undefined index:  in %s on line %d
13NULL
14
15Notice: Undefined index:  in %s on line %d
16NULL
17===DONE===
18