1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/spl/tests/bug70852.phpt
2015-11-05 14:09:24 +08:00

18 lines
283 B
PHP

--TEST--
Bug #70852 Segfault getting NULL offset of an ArrayObject
--FILE--
<?php
$y = new ArrayObject();
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===