Bug #52375 [Opn->Bgs]: implement missing constructors in dom classes
| From: | aharvey@php.net | Date: | Mon, 19 Jul 2010 06:22:51 +0000 |
| Subject: | Bug #52375 [Opn->Bgs]: implement missing constructors in dom classes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152518@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52375&edit=1
ID: 52375
Updated by: aharvey@php.net
Reported by: giorgio dot liscio at email dot it
Summary: implement missing constructors in dom classes
-Status: Open
+Status: Bogus
Type: Bug
Package: DOM XML related
Operating System: all
PHP Version: 5.3.2
New Comment:
This is intentional: the underlying library (libxml2) requires those
objects to be attached to a document instance, and the
DOMDocument::create* methods are also the ones specified in the DOM
standard as the way to create those particular objects.
Previous Comments:
------------------------------------------------------------------------
[2010-07-19 08:12:06] giorgio dot liscio at email dot it
Description:
------------
hi, for example DOMCharacterData has no constructor
the only way i can create an instance is using a document instance
in plus php throws
Warning: main() [function.main]: Invalid State Error in .....
some of missing constructors are
new DOMCharacterData
new DOMDocumentFragment
new DOMDocumentType
etc.
thank you for this lib, i hope to help you finding bugs
bye
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52375&edit=1