mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Added failing test for ArrayObject::offsetExists().
This commit is contained in:
commit
1b179545c2
10
ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
Normal file
10
ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
Normal file
@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
SPL: ArrayObject::offsetExists() should return true for element containing NULL
|
||||
--FILE--
|
||||
<?php
|
||||
$ao = new ArrayObject(array('foo' => null));
|
||||
var_dump($ao->offsetExists('foo'));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(true)
|
Loading…
Reference in New Issue
Block a user