Skip to content

Commit

Permalink
Merge branch 'PHP-7.0'
Browse files Browse the repository at this point in the history
* PHP-7.0:
  Make test for bug #70852 to cover all cases
  Fixed bug #70852 Segfault getting NULL offset of an ArrayObject.
  • Loading branch information
reeze committed Nov 5, 2015
2 parents d598e1b + 435565a commit f2d39b5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ext/spl/tests/bug70852.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--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===

0 comments on commit f2d39b5

Please sign in to comment.