Date: Sat, 1 Apr 2006 15:49:10 GMT From: Thomas Wolf <tw@wsf.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/95204: php5 XSLT Processor dumps core on xsl:text Message-ID: <200604011549.k31FnABY046577@www.freebsd.org> Resent-Message-ID: <200604011550.k31FoJ7s046564@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604011549.k31FnABY046577>