#45200 [NEW]: xsl document() Function crash Output
| From: | privat at praeclarus dot de | Date: | Sat, 07 Jun 2008 12:43:06 +0000 |
| Subject: | #45200 [NEW]: xsl document() Function crash Output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-125563@lists.php.net to get a copy of this message | ||
From: privat at praeclarus dot de
Operating system: Linux
PHP version: 5.2.6
PHP Bug Type: XSLT related
Bug description: xsl document() Function crash Output
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 bug report at http://bugs.php.net/?id=45200&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45200&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45200&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45200&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45200&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45200&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45200&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45200&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45200&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45200&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45200&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45200&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45200&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45200&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45200&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45200&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45200&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45200&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45200&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45200&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45200&r=mysqlcfg