mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
21 lines
517 B
PHP
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
|