Re: New DTD Class

From: Date: Wed, 03 Sep 2003 10:55:13 +0000
Subject: Re: New DTD Class
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21017@lists.php.net to get a copy of this message
Hi Thomas, > The class hasn't yet been pear_packaged, do not try to install it with > the pear installer. This error is because you're 1) including the file > twice (just change the include's in test.php with include_once's) or > 2) you already have a DTD class under your include path. Yeah, I uninstalled the package, and the problem still exists, which shouldn't be the case. Actually, the redefine error occurs when I do a simple $php DTD.php which should not be a problem. It also occurred when I commented out all lines in test.php that could possibly have caused it, and changed all includes to include_once. I found out that new DTD was conflicting with domxml for some unknown reason. Warning: domnode() expects exactly 1 parameter, 0 given in /usr/share/php/XML/DTD/XML_Validator.php on line 45 (I have php 4.3.3rc4, with domxml, etc. and XML_Tree 1.1) So what I ended up doing was the following: I created this directory structure: XML/DTD.php XML/DTD/XML_Validator.php And I renamed the classes to: XML_DTD XML_DTD_Tree XML_DTD_XML_Validator and appropriately changed all references to them. And I pear packaged that and now it loads up just fine... but... it prints out an empty XML_DTD_Tree object when I try to validate a DTD, and if I try to validate an XML file, it says that none of the elements are declared. Hope this helps, Klaus

« previous php.pear.dev (#21017) next »