#41485 [NoF->Opn]: segmentation fault parsing wrong xsl file
ID: 41485
User updated by: andyjunkie at tiscali dot it
Reported By: andyjunkie at tiscali dot it
-Status: No Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: linux debian
PHP Version: 5.2.2
New Comment:
No crash from command line.
Crashes with:
Debian 2.6.18-4-686
Apache/2.2.3 (Debian)
PHP/5.2.0-8+etch4
libxml2 2.6.27
libxslt 1.1.19
Previous Comments:
------------------------------------------------------------------------
[2007-06-16 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-06-08 01:12:54] stas@php.net
Works for me on Linux Fedora 6.
------------------------------------------------------------------------
[2007-06-01 15:00:52] rrichards@php.net
You might want to try using xsltproc command line to see if it crashes
there as well (indicating not a PHP issue). Also, try upgrading your
libxml2 and libxslt libraries.
It's working fine on linux with libxml2-2.6.23 and libxslt-1.1.15
------------------------------------------------------------------------
[2007-06-01 14:33:15] andyjunkie at tiscali dot it
<?php
$xsl = '<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<br>
</xsl:template>
</xsl:stylesheet>';
$xsltProcessor = new XSLTProcessor();
$xslDom = new DOMDocument();
$xslDom->loadXML($xsl);
$xsltProcessor->importStyleSheet($xslDom);
?>
------------------------------------------------------------------------
[2007-06-01 14:27:54] andyjunkie at tiscali dot it
Here is the script:
<?php
$xsltProcessor = new XSLTProcessor();
$xslDom = new DOMDocument();
$xslDom->load(dirname(__FILE__).'/test.xsl');
$xsltProcessor->importStyleSheet($xslDom); // SEG FAULT
?>
This is the content of "test.xsl", note that <br> tag is not closed
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<br>
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/41485
--
Edit this bug report at http://bugs.php.net/?id=41485&edit=1
Thread (9 messages)