#31809 [Opn->Fbk]: disable-output-escaping="yes" causes segmentation fault
| From: | derick@php.net | Date: | Wed, 02 Feb 2005 10:50:25 +0000 |
| Subject: | #31809 [Opn->Fbk]: disable-output-escaping="yes" causes segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73257@lists.php.net to get a copy of this message | ||
ID: 31809
Updated by: derick@php.net
Reported By: it at lavtech dot ru
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: 2.4.19 GNU/Linux
PHP Version: 5.0.3
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-02-02 10:33:50] 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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31809&edit=1