#17779 [Opn->Fbk]: DOMXML can't handle SYSTEM DTD
| From: | chregu@php.net | Date: | Wed, 14 Aug 2002 16:22:09 +0000 |
| Subject: | #17779 [Opn->Fbk]: DOMXML can't handle SYSTEM DTD | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16792@lists.php.net to get a copy of this message | ||
ID: 17779
Updated by: chregu@php.net
Reported By: flying@dom.natm.ru
-Status: Open
+Status: Feedback
Bug Type: DOM XML related
Operating System: Windows 2000
PHP Version: 4.2.1
New Comment:
Hi
do you use apache 1.3 or apache2?
chregu
Previous Comments:
------------------------------------------------------------------------
[2002-06-18 09:36:03] flying@dom.natm.ru
echo getcwd() gives me correct path, DOMXML still throws a warning, i
wrote before (both with and without DOMXML_LOAD_COMPLETE_ATTRS)
------------------------------------------------------------------------
[2002-06-18 05:55:17] derick@php.net
Works fine for me with Linux, both the Apache module and CGI version. I
think that the WIndows thing doesn't change to the correct working
directory. Can you try this by putting an "echo getcwd()" just before
the call to xmldoc().
Derick
------------------------------------------------------------------------
[2002-06-16 07:36:56] flying@dom.natm.ru
Yes, it works well, when there is full path to external DTD specified.
------------------------------------------------------------------------
[2002-06-16 07:32:08] derick@php.net
Does it work when you use the full path to that file in your XML file?
Derick
------------------------------------------------------------------------
[2002-06-16 05:47:17] flying@dom.natm.ru
DOMXML module can't load XML documents, containing SYSTEM DTD. Here is
example:
test.xml
========
<?xml version="1.0"?>
<!DOCTYPE root SYSTEM "ext.dtd">
<root>&test;</root>
ext.dtd
=======
<!ENTITY test "***TEST***">
Loading this document as:
$xml = xmldoc(join('',file('test.xml')));
Throws warning about undefined entity &test;
Loading this document as:
$xml = xmldoc(join('',file('test.xml')),DOMXML_LOAD_COMPLETE_ATTRS);
Throws warning: Warning: failed to load external entity "ext.dtd"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17779&edit=1