xref: /PHP-7.2/ext/dom/tests/bug69373.phpt (revision d027bc2a)
1--TEST--
2Bug #69373 References to deleted XPath query results
3--FILE--
4<?php
5$doc = new DOMDocument();
6for( $i=0; $i<20; $i++ ) {
7	$doc->loadXML("<parent><child /><child /></parent>");
8	$xpath = new DOMXpath($doc);
9	$all = $xpath->query('//*');
10	$doc->firstChild->nodeValue = '';
11}
12echo 'DONE', PHP_EOL;
13?>
14--EXPECT--
15DONE
16