php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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 commitsRelated reports
 [2003-12-22 11:28 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC