|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-09 12:28 UTC] rrichards@php.net
[2008-06-09 13:14 UTC] privat at praeclarus dot de
[2008-06-09 14:25 UTC] rrichards@php.net
[2008-06-17 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 22:00:01 2025 UTC |
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