summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-01-17 16:36:04 +0000
committerMarcus Boerger <helly@php.net>2004-01-17 16:36:04 +0000
commit665a834a764676d7dfa32cdf8806b2b46693a3a0 (patch)
tree80d78e16e1c6e6b928df93847725393e6530b3b6 /ext/simplexml/simplexml.c
parent9c2e37e89a2e89b19029807aa413ac830c500322 (diff)
downloadphp-git-665a834a764676d7dfa32cdf8806b2b46693a3a0.tar.gz
Fix parameter list and protos
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index b460722525..41403e754c 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1216,7 +1216,7 @@ sxe_object_new(zend_class_entry *ce TSRMLS_DC)
}
/* }}} */
-/* {{{ proto simplemxml_element simplexml_load_file(string filename)
+/* {{{ proto simplemxml_element simplexml_load_file(string filename [, string class_name])
Load a filename and return a simplexml_element object to allow for processing */
PHP_FUNCTION(simplexml_load_file)
{
@@ -1257,7 +1257,7 @@ PHP_FUNCTION(simplexml_load_file)
}
/* }}} */
-/* {{{ proto simplemxml_element simplexml_load_string(string data)
+/* {{{ proto simplemxml_element simplexml_load_string(string data [, string class_name])
Load a string and return a simplexml_element object to allow for processing */
PHP_FUNCTION(simplexml_load_string)
{
@@ -1269,7 +1269,7 @@ PHP_FUNCTION(simplexml_load_string)
int classname_len = 0;
zend_class_entry *ce= sxe_class_entry;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &data, &data_len, &classname, &classname_len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &data, &data_len, &classname, &classname_len) == FAILURE) {
return;
}
@@ -1439,7 +1439,7 @@ static void php_sxe_iterator_rewind(zend_object_iterator *iter TSRMLS_DC)
}
-/* {{{ proto simplemxml_element simplexml_import_dom(domNode node)
+/* {{{ proto simplemxml_element simplexml_import_dom(domNode node [, string class_name])
Get a simplexml_element object from dom to allow for processing */
PHP_FUNCTION(simplexml_import_dom)
{