ports/95204: php5 XSLT Processor dumps core on xsl:text
Thomas Wolf
tw at wsf.at
Sat Apr 1 15:50:26 UTC 2006
>Number: 95204
>Category: ports
>Synopsis: php5 XSLT Processor dumps core on xsl:text
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Apr 01 15:50:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Thomas Wolf
>Release: 5.4
>Organization:
WSF
>Environment:
FreeBSD ewms.wsf.local 5.4-RELEASE-p4 FreeBSD 5.4-RELEASE-p4 #0: Wed Jul 13 09:28:36 CEST 2005 tw at ewms.wsf.local:/usr/obj/usr/src/sys/wsf01 i386
>Description:
Loading XSL-Stylsheets using <xsl:text>sometext</xsl:text> dumps core.
>How-To-Repeat:
$ php -v
PHP 5.1.2 (cli) (built: Mar 16 2006 22:21:08)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
$ cat bug.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:text>hi there</xsl:text>
</xsl:template>
</xsl:stylesheet>
$ cat XSLTbug.php
<?php
$xsl = new DOMDocument;
$xsl->load('bug.xsl');
// Configure the transformer
$proc = new XSLTProcessor;
$proc->importStyleSheet($xsl); // attach the xsl rules
?>
$ php XSLTbug.php
php in free(): error: modified (chunk-) pointer
Abort trap (core dumped)
$
>Fix:
avoid <xsl:text> ;)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list