php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52375 implement missing constructors in dom classes
Submitted: 2010-07-19 08:12 UTC Modified: 2010-07-19 08:22 UTC
From: giorgio dot liscio at email dot it Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.3.2 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: giorgio dot liscio at email dot it
New email:
PHP Version: OS:

 

 [2010-07-19 08:12 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-19 08:22 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-07-19 08:22 UTC] aharvey@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 04:01:30 2024 UTC