php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31809 disable-output-escaping="yes" causes segmentation fault
Submitted: 2005-02-02 10:33 UTC Modified: 2005-02-21 19:57 UTC
From: it at lavtech dot ru Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.0.3 OS: 2.4.19 GNU/Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-02-02 10:33 UTC] it at lavtech dot ru
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-02 11:50 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2005-02-21 19:57 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 01:05:44 2022 UTC