ru_php/ext/xsl/tests/bug70535.phpt

21 lines
517 B
PHP

--TEST--
Bug #70535 (XSLT: free(): invalid pointer)
--EXTENSIONS--
xsl
simplexml
--FILE--
<?php
$xmlInput = simplexml_load_string('<root></root>');
$xslInput = '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="root"><xsl:text>success</xsl:text></xsl:template></xsl:stylesheet>';
$xsl = new \DomDocument();
$xsl->loadXML($xslInput);
$xslt = new \XsltProcessor();
$xslt->importStylesheet($xsl);
$xmloutput = $xslt->transformToXml($xmlInput);
?>
okey
--EXPECT--
okey