xref: /php-src/ext/dom/tests/bug38438.phpt (revision bd9f4fa6)
1--TEST--
2Bug #38438 (DOMNodeList->item(0) segfault on empty NodeList)
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$list = new DOMNodeList();
8var_dump($list->item(0));
9echo "OK\n";
10?>
11--EXPECT--
12NULL
13OK
14