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