php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39038 Produces several xml related PHP notices when php_domxml is loaded
Submitted: 2006-10-04 17:43 UTC Modified: 2006-10-04 17:53 UTC
From: spanchang02 at yahoo dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.1.6 OS: WindowsXP Prof 2002 ServPack 2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: spanchang02 at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-10-04 17:43 UTC] spanchang02 at yahoo dot com
Description:
------------
Create a single line .php file in localhost like echo 'hello world'. Enable php_domxml extension in php.ini. It produces several PHP notices like PHP Notice: Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DTD_NODE already defined in Unknown on
line 0 PHP Notice: Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_DECL_NODE already defined in ...


Reproduce code:
---------------
Create any php file under localhost. Even a single line echo or phpinfo line will do. Turn on php_domxml in php.ini

Expected result:
----------------
Produces several php notices at end of the content in the browser like: PHP Notice: Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_DTD_NODE already defined in Unknown on
line 0 PHP Notice: Constant XML_ELEMENT_DECL_NODE already defined in Unknown on line 0 PHP Notice: Constant XML_ATTRIBUTE_DECL_NODE already defined in ...


Actual result:
--------------
I have PECL loaded and libxml2-2.6.22.win32

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-04 17:53 UTC] tony2001@php.net
domxml.dll is for PHP4, use http://php.net/dom in PHP5.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 22:01:28 2024 UTC