ID: 45200 Updated by: [EMAIL PROTECTED] Reported By: privat at praeclarus dot de -Status: Open +Status: Feedback Bug Type: XSLT related Operating System: Linux PHP Version: 5.2.6 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-06-07 12:43:05] privat at praeclarus dot de Description: ------------ This Part of Code will crash the Script without any Error. After commenting out: <xsl:value-of select="document('."'Sprache_DE_Fahrzeugliste.xml'".')" /> it will output "hello". At php 4 domxsl the same Stylesheet will work like charme, like in all other XSLT-Processors. Reproduce code: --------------- <?php $s_xml = '<?xml version="1.0" encoding="utf-8"?><root><test>hallo</test></root>'; $s_xsl = '<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:value-of select="document('."'Sprache_DE_Fahrzeugliste.xml'".')" /> <xsl:apply-templates/> </xsl:template> </xsl:stylesheet> '; $o_xml = DOMDocument::loadXML ( $s_xml ); $o_xsl = DOMDocument::loadXML ( $s_xsl ); $o_Prozess = new XSLTProcessor(); $o_Prozess -> importStyleSheet ( $o_xsl ); echo $o_Prozess -> transformToXML( $o_xml ); ?> Expected result: ---------------- When not 'Sprache_DE_Fahrzeugliste.xml' exist an Error, and whn Exist processing the xml_Document. Actual result: -------------- Crash witout any output ... seems the Apache-Process will killed before an Output ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45200&edit=1