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