#14063: PHP 5.2.5_1 crashes on XSLTProcessor::importStylesheet -----------------------------------+---------------------------------------- Reporter: peter@no-nonsense.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | -----------------------------------+---------------------------------------- When I run this little PHP script with my MacPorts Apache2/PHP 5.2.5_1 (both the latest versions available in the ports): {{{ <?php $stylesheet = new DOMDocument(); $stylesheet->loadXML('<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> </xsl:stylesheet> '); $processor = new XSLTProcessor(); $processor->importStylesheet($stylesheet); echo "jow"; }}} Apache segfaults: [Thu Jan 24 22:51:35 2008] [notice] child pid 24505 exit signal Segmentation fault (11) The strange thing is, when I change the echo from a simple "jow" to something like "never gets here :(" the script sometimes doesn't segfault. When I remove the echo however it always segfaults. Running the same script using the cli php (the MacPorts php binary, not the built-in Leopard PHP binary), doesn't segfault. Based on this post http://www.nabble.com/Problem-with-PHP-and-libxslt- td15000461.html, I did a reinstall of libxml2, libxslt and php5, but this didn't help either. Ofcourse in real-life my code is a bit more complex, but I got it reduced to this small example. My real XSLT stylesheet ofcourse isn't empty. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14063> MacPorts </projects/macports> Ports system for Mac OS