#25508 [Opn->Bgs]: domxml_open_file() does not work when using relative paths
| From: | sniper@php.net | Date: | Fri, 12 Sep 2003 19:20:58 +0000 |
| Subject: | #25508 [Opn->Bgs]: domxml_open_file() does not work when using relative paths | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47522@lists.php.net to get a copy of this message | ||
ID: 25508
Updated by: sniper@php.net
Reported By: mfladischer at gmx dot net
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: *
-PHP Version: *
+PHP Version: 4.3.3
New Comment:
In that case, libxml has a bug. Use ./somefile.xml instead.
Previous Comments:
------------------------------------------------------------------------
[2003-09-12 11:45:00] mfladischer at gmx dot net
Please see the Reproduce code:
// example.xml is in the same directory as this script
the path is relative to the path where the script resides. i'm using
the apache2 module so paths relative to the location of the script
should work. but they do not work with domxml_open_file()!
------------------------------------------------------------------------
[2003-09-12 06:32:09] helly@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
According to config and sapi used relative paths can be relative to
executable, server executable, base url or current directory. RTFM.
------------------------------------------------------------------------
[2003-09-12 04:43:53] mfladischer at gmx dot net
Description:
------------
I get a bool(false) when trying to open a xml-file with a relative
path. It works as expected with FQ paths.
Reproduce code:
---------------
<?php
// example.xml is in the same directory as this script
var_dump(domxml_open_file("example.xml"));
?>
Expected result:
----------------
A DOM-document object:
object(domdocument)....
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25508&edit=1