diff options
-rw-r--r-- | ext/spl/tests/bug70852.phpt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/spl/tests/bug70852.phpt b/ext/spl/tests/bug70852.phpt index da7c00bb66..2b23ce4e09 100644 --- a/ext/spl/tests/bug70852.phpt +++ b/ext/spl/tests/bug70852.phpt @@ -3,9 +3,15 @@ Bug #70852 Segfault getting NULL offset of an ArrayObject --FILE-- <?php $y = new ArrayObject(); -echo $y[NULL]; + +var_dump($y[NULL]); +var_dump($y[NULL]++); ?> ===DONE=== --EXPECTF-- Notice: Undefined index: in %s on line %d +NULL + +Notice: Undefined index: in %s on line %d +NULL ===DONE=== |