From:             it at lavtech dot ru
Operating system: 2.4.19 GNU/Linux
PHP version:      5.0.3
PHP Bug Type:     Reproducible crash
Bug description:  disable-output-escaping="yes" causes segmentation fault

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 bug report at http://bugs.php.net/?id=31809&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31809&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31809&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31809&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31809&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31809&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31809&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31809&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31809&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31809&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31809&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31809&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31809&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31809&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31809&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31809&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31809&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31809&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31809&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31809&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31809&r=mysqlcfg

Reply via email to