summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-11-20 13:05:15 +0000
committerMarcus Boerger <helly@php.net>2005-11-20 13:05:15 +0000
commitcfeb12ccf551d3adf9331a852c8af0009a371f01 (patch)
tree9c72bde719ad2eb2da611de17592259595bbdb5a /ext/simplexml/simplexml.c
parentd20fe303b3ca56415edd1f866eaba7a1253463de (diff)
downloadphp-git-cfeb12ccf551d3adf9331a852c8af0009a371f01.tar.gz
- MFH Fix parameter parsing
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index a1d374a44a..985343bbce 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1283,7 +1283,8 @@ PHP_FUNCTION(simplexml_load_file)
int filename_len;
xmlDocPtr docp;
char *classname = "";
- int classname_len = 0, options=0;
+ int classname_len = 0;
+ long options = 0;
zend_class_entry *ce= sxe_class_entry;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|sl", &filename, &filename_len, &classname, &classname_len, &options) == FAILURE) {
@@ -1326,7 +1327,8 @@ PHP_FUNCTION(simplexml_load_string)
int data_len;
xmlDocPtr docp;
char *classname = "";
- int classname_len = 0, options=0;
+ int classname_len = 0;
+ long options = 0;
zend_class_entry *ce= sxe_class_entry;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|sl", &data, &data_len, &classname, &classname_len, &options) == FAILURE) {
@@ -1361,7 +1363,7 @@ PHP_FUNCTION(simplexml_load_string)
/* }}} */
-/* {{{ proto SimpleXMLElement::__construct()
+/* {{{ proto SimpleXMLElement::__construct(string data)
SimpleXMLElement constructor */
SXE_METHOD(__construct)
{