php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13025 Unknown list entry type in request shutdown with create_comment()
Submitted: 2001-08-29 08:26 UTC Modified: 2001-08-29 17:52 UTC
From: chregu at phant dot ch Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0CVS-2001-08-29 OS: Linux Debian/unstable
Private report: No CVE-ID: None
 [2001-08-29 08:26 UTC] chregu at phant dot ch
Hi

I'm again not sure, if this is really a bug, or if the method is not finished or if I use it the wrong way (since documentation is missing)

The code

$xml = new_xmldoc('1.0');
$root = $xml->add_root("root");
$comment = $xml->create_comment("this is just a comment");
$newchild = $root->add_child($comment);

gives the warning:

Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0

Hope that helps for cleaning some bugs ;)

chregu


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-29 13:48 UTC] chregu at phant dot ch
Markus Fischer sent a patch for  php_domxml.c to me. The warning is gone since then ;)

here's the patch:

RCS file: /repository/php4/ext/domxml/php_domxml.c,v
retrieving revision 1.67.2.2
diff -r1.67.2.2 php_domxml.c
808c808
< 
---
>    le_domxmlcommentp = zend_register_list_destructors_ex(php_free_xml_node, NLL, "domcomment", module_number);

 [2001-08-29 17:52 UTC] joey@php.net
Fixed in CVS, thanks for the report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC