note 103868 added to function.xmlwriter-open-uri
| From: | LukasKnuth at osu1 dot php dot net | Date: | Sat, 07 May 2011 16:08:01 +0000 |
| Subject: | note 103868 added to function.xmlwriter-open-uri | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179529@lists.php.net to get a copy of this message | ||
If you're facing problems on Windows Servers running PHP 5.3 and newer, where this function
quits with an "Unable to resolve file path" Error, here is a Workaround which isn't
posted on the Bug site yet:
Add this before you use the openURI()-function:
<?php
touch($uri);
$uri = realpath($uri);
?>
This Bug appears in the following cases:
$xml->openURI('file.xml'); -> ok!
$xml->openURI('../file.xml'); -> ok!
$xml->openURI('xml/file.xml'); -> DON'T WORK!
$xml->openURI('../xml/file.xml'); -> DON'T WORK!
----
Server IP: 217.160.235.204
Probable Submitter: 93.214.129.161
----
Manual Page -- http://www.php.net/manual/en/function.xmlwriter-open-uri.php
Edit -- https://master.php.net/note/edit/103868
Del: integrated -- https://master.php.net/note/delete/103868/integrated
Del: useless -- https://master.php.net/note/delete/103868/useless
Del: bad code -- https://master.php.net/note/delete/103868/bad+code
Del: spam -- https://master.php.net/note/delete/103868/spam
Del: non-english -- https://master.php.net/note/delete/103868/non-english
Del: in docs -- https://master.php.net/note/delete/103868/in+docs
Del: other reasons-- https://master.php.net/note/delete/103868
Reject -- https://master.php.net/note/reject/103868
Search -- https://master.php.net/manage/user-notes.php