]> granicus.if.org Git - php/commitdiff
Fix parameter list and protos
authorMarcus Boerger <helly@php.net>
Sat, 17 Jan 2004 16:36:04 +0000 (16:36 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 17 Jan 2004 16:36:04 +0000 (16:36 +0000)
ext/simplexml/simplexml.c

index b460722525bada8c1a797565be66ddd1434c6f8c..41403e754c30f0569b21e995bdc7fb6d00a4209c 100644 (file)
@@ -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)
 {