xref: /PHP-8.3/ext/xsl/tests/bug70535.phpt (revision 74859783)
1--TEST--
2Bug #70535 (XSLT: free(): invalid pointer)
3--EXTENSIONS--
4xsl
5simplexml
6--FILE--
7<?php
8
9$xmlInput = simplexml_load_string('<root></root>');
10$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>';
11
12$xsl = new \DomDocument();
13$xsl->loadXML($xslInput);
14$xslt = new \XsltProcessor();
15$xslt->importStylesheet($xsl);
16$xmloutput = $xslt->transformToXml($xmlInput);
17?>
18okey
19--EXPECT--
20okey
21