From: info at sovall dot cz
Operating system: win2k
PHP version: 5.0.0b2 (beta2)
PHP Bug Type: *XML functions
Bug description: php_xsl xsltProcessor->transformToUri not working (win)
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
--
Edit bug report at http://bugs.php.net/?id=26690&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26690&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26690&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26690&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26690&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26690&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26690&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26690&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26690&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26690&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26690&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26690&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26690&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26690&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26690&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26690&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26690&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26690&r=float