Skip to content

Commit 8c44c85

Browse files
author
Shein Alexey
committed
Merge branch 'failed-arrayaccess-test' into PHP-5.3
* failed-arrayaccess-test: Added failing test for ArrayObject::offsetExists().
2 parents d0e3289 + ddac468 commit 8c44c85

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
SPL: ArrayObject::offsetExists() should return true for element containing NULL
3+
--FILE--
4+
<?php
5+
$ao = new ArrayObject(array('foo' => null));
6+
var_dump($ao->offsetExists('foo'));
7+
8+
?>
9+
--EXPECTF--
10+
bool(true)

0 commit comments

Comments
 (0)