#45200 [Opn->Fbk]: xsl document() Function crash Output
| From: | rrichards@php.net | Date: | Mon, 09 Jun 2008 14:25:44 +0000 |
| Subject: | #45200 [Opn->Fbk]: xsl document() Function crash Output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125603@lists.php.net to get a copy of this message | ||
ID: 45200
Updated by: rrichards@php.net
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:
Cannot reproduce here, so without trace, try newer version of libxml2
and libxslt
Previous Comments:
------------------------------------------------------------------------
[2008-06-09 13:14:48] privat at praeclarus dot de
Sorry, there is no Debugger installed on my Server. All i can provide
is that "Reproduce code" that ends with a blank Screen.
------------------------------------------------------------------------
[2008-06-09 12:28:31] rrichards@php.net
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.
------------------------------------------------------------------------
[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