|  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
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 );
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:template match="/">
<xsl:text disable-output-escaping="yes"><![CDATA[]]></xsl:text>

Expected result:
Segmentation fault.

Actual result:
For example: child pid 31708 exit signal Segmentation fault (11)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-02 11:50 UTC]
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

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]
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 04:01:28 2024 UTC