From b178addf5c51b56a9d9293c4b70a92c81f82d6f5 Mon Sep 17 00:00:00 2001 From: Jaroslaw Kolakowski Date: Tue, 8 Jan 2002 19:13:42 +0000 Subject: [PATCH] A Changed names of functions: - htmldoc() to html_doc(), - htmldocfile() to html_doc_file(), - domxml_htmldumpmem() to domxml_html_dump_mem(), - htmldumpmem() to html_dump_mem(). --- ext/domxml/php_domxml.c | 24 ++++++++++++------------ ext/domxml/php_domxml.h | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 0c3d8204c4..0a80ccaa64 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -154,14 +154,14 @@ static zend_function_entry domxml_functions[] = { PHP_FE(xmldoc, NULL) PHP_FE(xmldocfile, NULL) #if defined(LIBXML_HTML_ENABLED) - PHP_FE(htmldoc, NULL) - PHP_FE(htmldocfile, NULL) + PHP_FE(html_doc, NULL) + PHP_FE(html_doc_file, NULL) #endif PHP_FE(xmltree, NULL) PHP_FE(domxml_add_root, NULL) PHP_FE(domxml_dumpmem, NULL) #if defined(LIBXML_HTML_ENABLED) - PHP_FE(domxml_htmldumpmem, NULL) + PHP_FE(domxml_html_dump_mem, NULL) #endif PHP_FE(domxml_node_attributes, NULL) PHP_FE(domxml_elem_get_attribute, NULL) @@ -223,7 +223,7 @@ static function_entry php_domxmldoc_class_functions[] = { PHP_FALIAS(dtd, domxml_intdtd, NULL) PHP_FALIAS(dumpmem, domxml_dumpmem, NULL) #if defined(LIBXML_HTML_ENABLED) - PHP_FALIAS(htmldumpmem, domxml_htmldumpmem, NULL) + PHP_FALIAS(html_dump_mem, domxml_html_dump_mem, NULL) #endif #if defined(LIBXML_XPATH_ENABLED) PHP_FALIAS(xpath_init, xpath_init, NULL) @@ -2479,9 +2479,9 @@ PHP_FUNCTION(xmldocfile) /* }}} */ #if defined(LIBXML_HTML_ENABLED) -/* {{{ proto string domxml_htmldumpmem([int doc_handle]) - Dumps document into string */ -PHP_FUNCTION(domxml_htmldumpmem) +/* {{{ proto string domxml_html_dump_mem([int doc_handle]) + Dumps document into string as HTML */ +PHP_FUNCTION(domxml_html_dump_mem) { zval *id; xmlDoc *docp; @@ -2498,9 +2498,9 @@ PHP_FUNCTION(domxml_htmldumpmem) } /* }}} */ -/* {{{ proto object htmldoc(string htmldoc) +/* {{{ proto object html_doc(string html_doc) Creates DOM object of HTML document */ -PHP_FUNCTION(htmldoc) +PHP_FUNCTION(html_doc) { zval *rv; xmlDoc *docp; @@ -2525,9 +2525,9 @@ PHP_FUNCTION(htmldoc) } /* }}} */ -/* {{{ proto object htmldocfile(string filename) - Creates DOM object of HTML document in file*/ -PHP_FUNCTION(htmldocfile) +/* {{{ proto object html_doc_file(string filename) + Creates DOM object of HTML document in file */ +PHP_FUNCTION(html_doc_file) { zval *rv; xmlDoc *docp; diff --git a/ext/domxml/php_domxml.h b/ext/domxml/php_domxml.h index 2a165ea2bd..f80b16357e 100644 --- a/ext/domxml/php_domxml.h +++ b/ext/domxml/php_domxml.h @@ -51,8 +51,8 @@ PHP_FUNCTION(domxml_version); PHP_FUNCTION(xmldoc); PHP_FUNCTION(xmldocfile); #if defined(LIBXML_HTML_ENABLED) -PHP_FUNCTION(htmldoc); -PHP_FUNCTION(htmldocfile); +PHP_FUNCTION(html_doc); +PHP_FUNCTION(html_doc_file); #endif PHP_FUNCTION(xmltree); PHP_FUNCTION(domxml_new_xmldoc); @@ -73,7 +73,7 @@ PHP_FUNCTION(domxml_add_root); PHP_FUNCTION(domxml_intdtd); PHP_FUNCTION(domxml_dumpmem); #if defined(LIBXML_HTML_ENABLED) -PHP_FUNCTION(domxml_htmldumpmem); +PHP_FUNCTION(domxml_html_dump_mem); #endif /* Class DocumentType methods */ -- 2.50.1