php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45200 xsl document() Function crash Output
Submitted: 2008-06-07 12:43 UTC Modified: 2008-06-17 01:00 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: privat at praeclarus dot de Assigned:
Status: No Feedback Package: XSLT related
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: privat at praeclarus dot de
New email:
PHP Version: OS:

 

 [2008-06-07 12:43 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-09 12:28 UTC] 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-09 13:14 UTC] 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 14:25 UTC] rrichards@php.net
Cannot reproduce here, so without trace, try newer version of libxml2 
and libxslt
 [2008-06-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 17:01:31 2024 UTC