summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2006-06-26 13:41:52 +0000
committerHannes Magnusson <bjori@php.net>2006-06-26 13:41:52 +0000
commitae1ec65637a1a4e483ac4036f85a1f2915eb3f32 (patch)
treefda17cf4da484b6d5b5d911a63c3e4627fd4097f /ext
parentde85c9cd7028a9804837969f1090e5b1b066d8b3 (diff)
downloadphp-git-ae1ec65637a1a4e483ac4036f85a1f2915eb3f32.tar.gz
Added SimpleXMLElement::saveXML() as an alias for SimpleXMLElement::asXML()
Diffstat (limited to 'ext')
-rw-r--r--ext/simplexml/simplexml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 21f94465de..832cd53544 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -48,6 +48,7 @@ ZEND_API zend_class_entry *sxe_get_element_class_entry()
}
#define SXE_ME(func, arg_info, flags) PHP_ME(simplexml_element, func, arg_info, flags)
+#define SXE_MALIAS(func, alias, arg_info, flags) PHP_MALIAS(simplexml_element, func, alias, arg_info, flags)
#define SXE_METHOD(func) PHP_METHOD(simplexml_element, func)
@@ -2246,6 +2247,7 @@ ZEND_GET_MODULE(simplexml)
static zend_function_entry sxe_functions[] = {
SXE_ME(__construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) /* must be called */
SXE_ME(asXML, NULL, ZEND_ACC_PUBLIC)
+ SXE_MALIAS(saveXML, asXML, NULL, ZEND_ACC_PUBLIC)
SXE_ME(xpath, NULL, ZEND_ACC_PUBLIC)
SXE_ME(registerXPathNamespace, NULL, ZEND_ACC_PUBLIC)
SXE_ME(attributes, NULL, ZEND_ACC_PUBLIC)