While tweaking the library to fit with my framework, I noticed that all the procedural helper functions are wrappers around SHD methods, except dump_html_tree(). That one is called by simple_html_dom_node::dump(). I assume it should be the other way around.
I will rewrite it in next release.
Thanks.
I have changed this in the current version of simple_html_dom.
Please update to this version as there are many many other changes and improvements that have been made.