php_xsl xsltProcessor->transformToUri not working (win)
| Bug #26690 | php_xsl xsltProcessor->transformToUri not working (win) | ||||
|---|---|---|---|---|---|
| Submitted: | 2003-12-22 07:54 UTC | Modified: | 2003-12-22 11:28 UTC | ||
| From: | info at sovall dot cz | Assigned: | |||
| Status: | Closed | Package: | *XML functions | ||
| PHP Version: | 5.0.0b2 (beta2) | OS: | win2k | ||
| Private report: | No | CVE-ID: | None | ||
[2003-12-22 07:54 UTC] info at sovall dot cz
Description:
------------
php_xsl xsltProcessor->transformToUri not working (win).
php 5.0.0 beta3
apache 2.0.48
windows 2000
Reproduce code:
---------------
<?php
$xml = new domDocument;
$xml->loadXML('<root>test</root>');
$xsl = new domDocument;
$xsl->loadXML('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"><xsl:value-of select="root"/></xsl:template></xsl:stylesheet>');
$pro = new xsltProcessor;
$pro->importStylesheet($xsl);
$pro->transformToUri($xml,'test.txt');
print file_get_contents('test.txt');
?>
Expected result:
----------------
test
Actual result:
--------------
Warning: file_get_contents(test.txt) [function.file-get-contents]: failed to open stream: No such file or directory in C:\doc\usr\_www\xsl\index.php on line 9
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-12-22 11:28 UTC] iliaa@php.net