xref: /php-src/ext/dom/tests/gh15551.phpt (revision 9af574c2)
1--TEST--
2GH-15551 (Segmentation fault (access null pointer) in ext/dom/xml_common.h)
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$fragment = new DOMDocumentFragment();
8$nodes = $fragment->childNodes;
9$iter = $nodes->getIterator();
10$iter->next();
11var_dump($iter->valid());
12?>
13--EXPECT--
14bool(false)
15