summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShein Alexey <confik@gmail.com>2012-03-27 19:00:28 +0500
committerShein Alexey <confik@gmail.com>2012-03-27 19:00:28 +0500
commit1b179545c28f8c370d1cdec23075086e0d5b0a25 (patch)
tree8fa5773503362cd8258cd1b169f37f768de663d9
parenta8174653e33479c850342cd9f9b5e7898f52ad8d (diff)
parent8c44c85b0616f4eee6a68eec1e0d906d6b65ac02 (diff)
downloadphp-git-1b179545c28f8c370d1cdec23075086e0d5b0a25.tar.gz
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Added failing test for ArrayObject::offsetExists().
-rw-r--r--ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt b/ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
new file mode 100644
index 0000000000..1953643c84
--- /dev/null
+++ b/ext/spl/tests/arrayObject_offsetExists_nullcheck.phpt
@@ -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) \ No newline at end of file