|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27581 XML Dom html_dump_mem
Submitted: 2004-03-12 15:22 UTC Modified: 2004-03-14 05:12 UTC
From: angel at ciudad dot com dot ar Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.3.4 OS: Linux
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.
Block user comment
Status: Assign to:
Bug Type:
From: angel at ciudad dot com dot ar
New email:
PHP Version: OS:


 [2004-03-12 15:22 UTC] angel at ciudad dot com dot ar
This doesn't dump entery xml, just the first 3 nodes.

Reproduce code:
$xml_verificado = domxml_new_doc("1.0");

$xml_verificado_methodCall = $xml_verificado->create_element("methodCall");
$xml_verificado_methodCall = $xml_verificado->append_child($xml_verificado_methodCall);

$xml_verificado_methodName = $xml_verificado->create_element("methodName");
$xml_verificado_methodName = $xml_verificado_methodCall->append_child($xml_verificado_methodName);

$xml_verificado_methodName_method = $xml_verificado->create_text_node("sys.get_usuario");
$xml_verificado_methodName_method = $xml_verificado_methodName->append_child($xml_verificado_methodName_method);

$xml_verificado_params = $xml_verificado->create_element("params");
$xml_verificado_params = $xml_verificado_methodCall->append_child($xml_verificado_params);

$xml_verificado_params_param = $xml_verificado->create_element("param");
$xml_verificado_params_param = $xml_verificado_params->append_child($xml_verificado_params_param);

$xml_verificado_params_param_string = $xml_verificado->create_element("string");
$xml_verificado_params_param_string = $xml_verificado_params_param->append_child($xml_verificado_params_param_string);

echo $xml_verificado->html_dump_mem();

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-14 05:12 UTC]
why are you using html_dump_mem(), when it's clearly not 
an HTML document... use dump_mem() and everything works 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat May 08 07:01:23 2021 UTC