#29605 [Fbk->Csd]: segfault if end tag missing
| From: | derick@php.net | Date: | Wed, 11 Aug 2004 06:25:40 +0000 |
| Subject: | #29605 [Fbk->Csd]: segfault if end tag missing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64395@lists.php.net to get a copy of this message | ||
ID: 29605
Updated by: derick@php.net
Reported By: x-penguin at tut dot by
-Status: Feedback
+Status: Closed
Bug Type: XSLT related
Operating System: Linux
PHP Version: 5CVS-2004-08-10 (dev)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-08-11 08:25:23] chregu@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-08-10 20:14:09] x-penguin at tut dot by
Description:
------------
PHP Version 5.1.0-dev, configure with:
'./configure' '--prefix=/usr/' '--with-apxs2'
'--with-gettext'
'--with-iconv' '--with-mysql' '--enable-mbstring=ru'
'--enable-mbregex'
'--enable-mbstr-enc-trans' '--disable-short-tags' '--with-xsl'
'--with-libxml' '--without-sqlite' '--enable-soap'
libxslt Version 1.1.8
libxml Version 2.6.11
libexslt Version 1.1.8
apache 2.0.48
Reproduce code:
---------------
<?php
$xsl = new DomDocument();
$xsl->loadXML(
'<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl">
<xsl:template match="/">
<xsl:value-of select=".">
</xsl:template>
</xsl:stylesheet>'
);
$xml = new DomDocument;
$xml->loadXML('<?xml version="1.0" encoding="iso-8859-1"
?><null>ss</null>');
$proc = new XSLTProcessor();
$proc->importStylesheet($xsl);
$dom = $proc->transformToDoc($xml);
echo $dom->saveXML();
?>
Expected result:
----------------
Error message from XSLTProcessor: "Missing end tag for <xsl:value-of
select=".">..."
Actual result:
--------------
from apache error log:
[Tue Aug 10 21:12:07 2004] [notice] child pid 2353 exit signal
Segmentation fault (11)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29605&edit=1