diff options
author | Reeze Xia <reeze@php.net> | 2015-11-05 13:46:03 +0800 |
---|---|---|
committer | Reeze Xia <reeze@php.net> | 2015-11-05 13:46:03 +0800 |
commit | 51218b3b9dc612b2db7511f93296f975b6c2aa9d (patch) | |
tree | cc0164c11672de0fe9bed198b8daab3b920ec1fe /ext/spl/tests/bug70852.phpt | |
parent | 227c898cd9b763adc5c8371b02a82e5f8351fc5f (diff) | |
download | php-git-51218b3b9dc612b2db7511f93296f975b6c2aa9d.tar.gz |
Fixed bug #70852 Segfault getting NULL offset of an ArrayObject.
Diffstat (limited to 'ext/spl/tests/bug70852.phpt')
-rw-r--r-- | ext/spl/tests/bug70852.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/spl/tests/bug70852.phpt b/ext/spl/tests/bug70852.phpt new file mode 100644 index 0000000000..da7c00bb66 --- /dev/null +++ b/ext/spl/tests/bug70852.phpt @@ -0,0 +1,11 @@ +--TEST-- +Bug #70852 Segfault getting NULL offset of an ArrayObject +--FILE-- +<?php +$y = new ArrayObject(); +echo $y[NULL]; +?> +===DONE=== +--EXPECTF-- +Notice: Undefined index: in %s on line %d +===DONE=== |