mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
18 lines
364 B
PHP
18 lines
364 B
PHP
--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
|