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