|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
42 - 5 = ?
Subscribe to this entry?

 [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-2023 The PHP Group
All rights reserved.
Last updated: Mon Sep 25 19:01:25 2023 UTC