From: joahking at yahoo dot com
Operating system: winXP
PHP version: 4.3.9
PHP Bug Type: DOM XML related
Bug description: domxml_open_file() file access errors
Description:
------------
hi there,
I just move my PHP site from my linux box to a winXP-platform for testing.
On linux everything worked.
I have now PHP 4.3.9 (also tried with other versions) as a server module
on apache 1.3.29 (Win32).
I need to use the extension domxml but it gives some access errors.
This is my phpinfo result (php.ini have minor arrangements, like
displaying error colors, my aliases, the extension activation and nothing
else):
...
Apache Version Apache/1.3.29 (Win32) PHP/4.3.9
...
domxml
DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20611
HTML Support enabled
XPath Support enabled
XPointer Support enabled
DOM/XSLT enabled
libxslt Version 1.1.7
libxslt compiled against libxml Version 2.6.11
....
The error is generated with any "any.xml", and:
$mydom = domxml_open_file("any.xml");
which turns on something about file access (see below) which is only been
the case with the domxml, 'cos other file-accessers ( fopen ) access the
any.xml.
With apache 2 gave the same error. Everything else (what I need and have
seen, of course) works with PHP and apache, and browsing.
thanx in advance,
LSd
jk
Reproduce code:
---------------
any.xml (the molecules example from the PHP manual):
<?xml version="1.0"?>
<moldb>
<molecule>
<name>Alanine</name>
<symbol>ala</symbol>
<code>A</code>
<type>hydrophobic</type>
</molecule>
<molecule>
<name>Lysine</name>
<symbol>lys</symbol>
<code>K</code>
<type>charged</type>
</molecule>
</moldb>
and test.php (reside in the same path):
$mydom = domxml_open_file("any.xml");
Actual result:
--------------
Warning: domxml_open_file(): I/O in c:\program files\apache
group\apache\htdocs\test\dom-test.php on line x
Warning: domxml_open_file(): warning : in c:\program files\apache
group\apache\htdocs\test\dom-test.php on line
x
Warning: domxml_open_file(): failed to load external entity "any.xml" in
c:\program files\apache group\apache\htdocs\test\dom-test.php on line x
--
Edit bug report at http://bugs.php.net/?id=30797&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30797&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=30797&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=30797&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30797&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30797&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30797&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30797&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30797&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30797&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30797&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=30797&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=30797&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30797&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30797&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30797&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30797&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30797&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30797&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30797&r=mysqlcfg