|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59723 Segmentation fault executing transformation
Submitted: 2011-04-19 18:04 UTC Modified: 2017-10-24 23:43 UTC
From: D dot Kingma at jool dot nl Assigned:
Status: Suspended Package: xslcache (PECL)
PHP Version: 5.2.16 OS: Ubuntu Linux 64bit
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-04-19 18:04 UTC] D dot Kingma at jool dot nl
When replacing XsltProcessor with XslCache initialisation and importStylesheet work ok, but when executing the transformation it throws a segmentations fault. I have removed any xdebug/zend debugger / apc extension, but it still throws a segfault.

We used the 'pecl install xslcache' to install the module

Might be the same issue as the translit extension in #15627

PHP ini portion:

XSL 						enabled
libxslt Version 				1.1.22
libxslt compiled against libxml Version 	2.6.31
EXSLT 						enabled
libexslt Version 				1.1.24

XSLCACHE 					enabled
libxslt Version 				1.1.22
libxslt compiled against libxml Version 	2.6.31
EXSLT 						enabled
libexslt Version 				1.1.22 

Expected result:
Valid transformation output

Actual result:
child pid 13906 exit signal Segmentation fault (11)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-05 15:15 UTC]
Please, post a test case to reproduce such issue.
 [2011-06-06 10:14 UTC] D dot Kingma at jool dot nl
The bug is specific when you return a DOMElement from a registered php function.

Reproduction case:
function callXML() {
	$d = new domDocument();
	$d->loadXML('<ipub:result xmlns:ipub="http://wwwwww.wwwww.wwwww/sisisiis">yeah</ipub:result>');
	return $d->documentElement;

$dom = new domDocument;
$dom->loadXML('<?xml version="1.0"  encoding="iso-8859-1" ?><chapter language="en"></chapter>');

if(!$dom) {
	echo "Error while parsing the document\n";
$xsl = dirname(__FILE__)."/xslcachetest.xsl";
$orginalProcessor = false;
if($orginalProcessor) {
	$xslDoc = new domDocument;
	$proc = new xsltprocessor;
} else {
	$proc = new xsltcache;

if(!$proc) {
	echo "Error while making xsltprocessor object\n";


print "\nhere";
print $proc->transformToXml($dom);
print "\nend";

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:php="">
    <xsl:output  method="xml" indent="no"/>
    <xsl:template match="/">
        <xsl:value-of select="php:function('callXML')"/>
 [2017-10-24 23:43 UTC]
-Status: Open +Status: Suspended
 [2017-10-24 23:43 UTC]
The xslcache package has not had a release since 2013, and its safe to say that development has ceased. In case the development of this package picks back up, then this report should be re-opened.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 03:03:43 2022 UTC