From 9de0be49d6d9b1dcc2caa961b1bcc98de698f581 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Wed, 4 Aug 2004 14:40:53 +0000 Subject: [PATCH] Fix prototypes --- ext/simplexml/simplexml.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index b2af53d210..6c34371817 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -764,8 +764,8 @@ sxe_objects_compare(zval *object1, zval *object2 TSRMLS_DC) } /* }}} */ -/* {{{ xpath() - */ +/* {{{ array SimpleXMLElement::xpath(string path) + Runs XPath query on the XML data */ SXE_METHOD(xpath) { php_sxe_object *sxe; @@ -845,8 +845,8 @@ SXE_METHOD(xpath) } /* }}} */ -/* {{{ proto asXML([string filename]) - */ +/* {{{ proto string SimpleXMLElement::asXML([string filename]) + Return a well-formed XML string based on SimpleXML element */ SXE_METHOD(asXML) { php_sxe_object *sxe; @@ -918,8 +918,8 @@ SXE_METHOD(asXML) } /* }}} */ -/* {{{ simplexml_children() - */ +/* {{{ proto object SimpleXMLElement::children() + Finds children of given node */ SXE_METHOD(children) { php_sxe_object *sxe; @@ -940,8 +940,8 @@ SXE_METHOD(children) } /* }}} */ -/* {{{ simplexml_attributes() - */ +/* {{{ proto array SimpleXMLElement::attributes([string ns]) + Identifies an element's attributes */ SXE_METHOD(attributes) { php_sxe_object *sxe; @@ -1280,6 +1280,9 @@ PHP_FUNCTION(simplexml_load_string) } /* }}} */ + +/* {{{ proto SimpleXMLElement::__construct() + SimpleXMLElement constructor */ SXE_METHOD(__construct) { php_sxe_object *sxe = php_sxe_fetch_object(getThis() TSRMLS_CC); @@ -1304,6 +1307,8 @@ SXE_METHOD(__construct) php_libxml_increment_doc_ref((php_libxml_node_object *)sxe, docp TSRMLS_CC); php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement(docp), NULL TSRMLS_CC); } +/* }}} */ + typedef struct { zend_object_iterator intern; -- 2.50.1