summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReeze Xia <reeze@php.net>2015-11-05 14:09:24 +0800
committerReeze Xia <reeze@php.net>2015-11-05 14:09:24 +0800
commit1c0622a472cb88f780733456f5bb0eb03a40a1cb (patch)
treea4be12665528226bac24c4a31f3fe0aa45f8bba2
parent51218b3b9dc612b2db7511f93296f975b6c2aa9d (diff)
downloadphp-git-1c0622a472cb88f780733456f5bb0eb03a40a1cb.tar.gz
Make test for bug #70852 to cover all cases
-rw-r--r--ext/spl/tests/bug70852.phpt8
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===