--TEST--
XSLTProcessor namespace mapper lifetime
--EXTENSIONS--
dom
xsl
--FILE--
World
XML);
$xslXML = <<
XML;
$processor = new XSLTProcessor();
// The fact that this is a temporary is important!
// And yes, this is done twice on purpose to check for leaks
$processor->importStylesheet(Dom\XMLDocument::createFromString($xslXML));
$processor->importStylesheet(Dom\XMLDocument::createFromString($xslXML));
$processor->registerPHPFunctions();
echo $processor->transformToXML($input), "\n";
?>
--EXPECT--
WORLD