diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-08-13 15:02:41 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-08-13 15:02:41 +0000 |
commit | baff4e0ab5c831a5780d0a12b3080994965dd2dc (patch) | |
tree | b85ebc5a7151ed2acd51249fec6d87cb01caf360 /ext/dom/tests/bug38438.phpt | |
parent | 7d0b17fc671395407d35a38ee0d58f0c548dbada (diff) | |
download | php-git-baff4e0ab5c831a5780d0a12b3080994965dd2dc.tar.gz |
Fixed bug #38438 (DOMNodeList->item(0) segfault on empty NodeList)
Diffstat (limited to 'ext/dom/tests/bug38438.phpt')
-rw-r--r-- | ext/dom/tests/bug38438.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/dom/tests/bug38438.phpt b/ext/dom/tests/bug38438.phpt new file mode 100644 index 0000000000..f51252832c --- /dev/null +++ b/ext/dom/tests/bug38438.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #38438 (DOMNodeList->item(0) segfault on empty NodeList) +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php +$list = new DOMNodeList(); +var_dump($list->item(0)); +echo "OK\n"; +?> +--EXPECT-- +NULL +OK |