Skip to content

Commit

Permalink
MFH (fix some to long property strings)
Browse files Browse the repository at this point in the history
  • Loading branch information
chregu committed Aug 27, 2002
1 parent ab15fed commit d1f35cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/domxml/php_domxml.c
Expand Up @@ -1075,7 +1075,7 @@ static zval *php_domobject_new(xmlNodePtr obj, int *found TSRMLS_DC)
rsrc_type = le_domxmltextp;
content = xmlNodeGetContent(nodep);
add_property_long(wrapper, "type", Z_TYPE_P(nodep));
add_property_stringl(wrapper, "name", "#text", sizeof("#text"), 1);
add_property_stringl(wrapper, "name", "#text", 5, 1);
if (content)
add_property_stringl(wrapper, "content", (char *) content, strlen(content), 1);
xmlFree(content);
Expand All @@ -1090,7 +1090,7 @@ static zval *php_domobject_new(xmlNodePtr obj, int *found TSRMLS_DC)
content = xmlNodeGetContent(nodep);
if (content) {
add_property_long(wrapper, "type", Z_TYPE_P(nodep));
add_property_stringl(wrapper, "name", "#comment", sizeof("#comment"), 1);
add_property_stringl(wrapper, "name", "#comment", 8, 1);
add_property_stringl(wrapper, "content", (char *) content, strlen(content), 1);
xmlFree(content);
}
Expand Down Expand Up @@ -1163,7 +1163,7 @@ static zval *php_domobject_new(xmlNodePtr obj, int *found TSRMLS_DC)
if (docp->name)
add_property_stringl(wrapper, "name", (char *) docp->name, strlen(docp->name), 1);
else
add_property_stringl(wrapper, "name", "#document", sizeof("#document"), 1);
add_property_stringl(wrapper, "name", "#document", 9, 1);
if (docp->URL)
add_property_stringl(wrapper, "url", (char *) docp->URL, strlen(docp->URL), 1);
else
Expand Down

0 comments on commit d1f35cd

Please sign in to comment.