Bug 95204

Summary: php5 XSLT Processor dumps core on xsl:text
Product: Ports & Packages Reporter: Thomas Wolf <tw>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Thomas Wolf 2006-04-01 16:50:18 UTC
Loading XSL-Stylsheets using <xsl:text>sometext</xsl:text> dumps core.

Fix: 

avoid <xsl:text> ;)
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)
$
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-04-01 23:31:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2006-04-02 08:49:03 UTC
Unreproduceable:

%php -v
PHP 5.1.2 (cli) (built: Apr  2 2006 09:41:08) (DEBUG)
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 bug.php
<?php
    $xsl = new DOMDocument;
    $xsl->load('bug.xsl');
    // Configure the transformer
    $proc = new XSLTProcessor;
    $proc->importStyleSheet($xsl); // attach the xsl rules
    echo "No bug\n";
?>
%php bug.php
No bug
%

--
Alex Dupre
_______________________________________________
freebsd-ports-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"
Comment 3 Thomas Wolf 2006-04-02 11:24:16 UTC
upgrading to libxslt-1.1.15_1 solved the problem.
Sorry for the noise, please close.

Thomas
Comment 4 Alex Dupre freebsd_committer freebsd_triage 2006-04-02 11:37:16 UTC
State Changed
From-To: open->closed

Closed by submitter request.