#39038 [Opn->Bgs]: Produces several xml related PHP notices when php_domxml is loaded
| From: | tony2001@php.net | Date: | Wed, 04 Oct 2006 17:53:51 +0000 |
| Subject: | #39038 [Opn->Bgs]: Produces several xml related PHP notices when php_domxml is loaded | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103095@lists.php.net to get a copy of this message | ||
ID: 39038
Updated by: tony2001@php.net
Reported By: spanchang02 at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: WindowsXP Prof 2002 ServPack 2
PHP Version: 5.1.6
New Comment:
domxml.dll is for PHP4, use http://php.net/dom in PHP5.
Previous Comments:
------------------------------------------------------------------------
[2006-10-04 17:43:29] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39038&edit=1