|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-02 11:50 UTC] derick@php.net
[2005-02-21 19:57 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
Description: ------------ Using disable-output-escaping XSLT instruction attribute with "yes" value causes Segmentation fault. Reproduce code: --------------- $stylesheetDocument = new DOMDocument(); $stylesheetDocument->load( 'php5test.xslt' ) || die('Unable to open stylesheet'); $inputDocument = new DOMDocument(); $inputDocument->loadXML( '<?xml version="1.0"?><root/>' ); $xsltProcessor = new XSLTProcessor(); $xsltProcessor->importStylesheet( $stylesheetDocument ); $outputDocument = $xsltProcessor->transformToDoc( $inputDocument, true ); php5test.xslt: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:text disable-output-escaping="yes"><![CDATA[]]></xsl:text> </xsl:template> </xsl:stylesheet> Expected result: ---------------- Segmentation fault. Actual result: -------------- For example: child pid 31708 exit signal Segmentation fault (11)