From: Marcus Boerger Date: Sat, 17 Jan 2004 16:36:04 +0000 (+0000) Subject: Fix parameter list and protos X-Git-Tag: php_ibase_before_split~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=665a834a764676d7dfa32cdf8806b2b46693a3a0;p=php Fix parameter list and protos --- 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) {