com php-src: Make test for bug #70852 to cover all cases: ext/spl/tests/bug70852.phpt
| From: | Reeze Xia | Date: | Thu, 05 Nov 2015 06:09:24 +0000 |
| Subject: | com php-src: Make test for bug #70852 to cover all cases: ext/spl/tests/bug70852.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89593@lists.php.net to get a copy of this message | ||
Commit: 1c0622a472cb88f780733456f5bb0eb03a40a1cb
Author: Reeze Xia <reeze@php.net> Thu, 5 Nov 2015 14:09:24 +0800
Parents: 51218b3b9dc612b2db7511f93296f975b6c2aa9d
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1c0622a472cb88f780733456f5bb0eb03a40a1cb
Log:
Make test for bug #70852 to cover all cases
Bugs:
https://bugs.php.net/70852
Changed paths:
M ext/spl/tests/bug70852.phpt
Diff:
diff --git a/ext/spl/tests/bug70852.phpt b/ext/spl/tests/bug70852.phpt
index da7c00b..2b23ce4 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===