Problem with PHP and libxslt

Ryan Schmidt ryandesign at macports.org
Mon Jan 21 11:33:15 PST 2008


On Jan 21, 2008, at 09:58, Jonas Munk wrote:

> When trying to use the xsl functions in php from macports install like
> this:
>
> $xslData = '<?xml version="1.0" encoding="ISO-8859-1"?>'.
> 	'<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">'.
> 	'<xsl:output method="html" indent="no" encoding="ISO-8859-1"/>'.
> 	'<xsl:template match="/">abc</xsl:template>'.
> 	'</xsl:stylesheet>';
> $xmlData = '<?xml version="1.0" encoding="ISO-8859-1"?><test/>';
> $xslt = new xsltProcessor;
> $xslt->importStyleSheet(DomDocument::loadXML($xslData));
> $result = $xslt->transformToXML(DomDocument::loadXML($xmlData));
>
> I get this error in the log file (after a few seconds):
>
> [Thu Jan 17 20:09:19 2008] [notice] child pid 13951 exit signal
> Segmentation fault (11)
>
> Does anyone know why this happens.
>
> It works with the PHP standard in leopard and I have been working on/
> using this code for years (also on tiger and panther) using other php-
> dists.
> I have tried posting it to the PHP bug database but they replied  
> that it was not a PHP problem.
> Should I file a bug?

You sent a very similar mail 4 days ago:

http://lists.macosforge.org/pipermail/macports-users/2008-January/ 
008417.html

I've never heard of this problem before. It works fine for me, and  
for Chris, though we're both using Tiger, not Leopard. This seems to  
be the bug you filed with the PHP team:

http://bugs.php.net/bug.php?id=43883

You may want to take their advice and ask in their support channels  
what to do next. Unfortunately, I don't have any further suggestions.  
If anyone else reading this is using PHP on a PowerPC Mac and could  
try Jonas' reproduction recipe and let us know whether or not it  
works for you, that would be great.

By all means file a bug in our issue tracker. I just hope someone can  
suggest a solution for it.



More information about the macports-users mailing list