zeev Wed Aug 4 10:40:53 2004 EDT
Modified files: (Branch: PHP_5_0)
/php-src/ext/simplexml simplexml.c
Log:
Fix prototypes
http://cvs.php.net/diff.php/php-src/ext/simplexml/simplexml.c?r1=1.139&r2=1.139.2.1&ty=u
Index: php-src/ext/simplexml/simplexml.c
diff -u php-src/ext/simplexml/simplexml.c:1.139
php-src/ext/simplexml/simplexml.c:1.139.2.1
--- php-src/ext/simplexml/simplexml.c:1.139 Tue May 4 11:03:48 2004
+++ php-src/ext/simplexml/simplexml.c Wed Aug 4 10:40:53 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: simplexml.c,v 1.139 2004/05/04 15:03:48 wez Exp $ */
+/* $Id: simplexml.c,v 1.139.2.1 2004/08/04 14:40:53 zeev Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -764,8 +764,8 @@
}
/* }}} */
-/* {{{ xpath()
- */
+/* {{{ array SimpleXMLElement::xpath(string path)
+ Runs XPath query on the XML data */
SXE_METHOD(xpath)
{
php_sxe_object *sxe;
@@ -845,8 +845,8 @@
}
/* }}} */
-/* {{{ 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 @@
}
/* }}} */
-/* {{{ simplexml_children()
- */
+/* {{{ proto object SimpleXMLElement::children()
+ Finds children of given node */
SXE_METHOD(children)
{
php_sxe_object *sxe;
@@ -940,8 +940,8 @@
}
/* }}} */
-/* {{{ simplexml_attributes()
- */
+/* {{{ proto array SimpleXMLElement::attributes([string ns])
+ Identifies an element's attributes */
SXE_METHOD(attributes)
{
php_sxe_object *sxe;
@@ -1280,6 +1280,9 @@
}
/* }}} */
+
+/* {{{ proto SimpleXMLElement::__construct()
+ SimpleXMLElement constructor */
SXE_METHOD(__construct)
{
php_sxe_object *sxe = php_sxe_fetch_object(getThis() TSRMLS_CC);
@@ -1304,6 +1307,8 @@
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;
@@ -1651,7 +1656,7 @@
{
php_info_print_table_start();
php_info_print_table_header(2, "Simplexml support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.139 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.139.2.1 $");
php_info_print_table_row(2, "Schema support",
#ifdef LIBXML_SCHEMAS_ENABLED
"enabled");
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php