diff options
author | Christian Stocker <chregu@php.net> | 2002-08-27 08:41:25 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2002-08-27 08:41:25 +0000 |
commit | d1f35cd2a365280cae20952cd18f5cd1b201d83c (patch) | |
tree | fb44ad35dda805544018a6b9e4bfe6c7c8820ad2 | |
parent | ab15fed03dbf86954c7138a32d015683fd753d0e (diff) | |
download | php-git-d1f35cd2a365280cae20952cd18f5cd1b201d83c.tar.gz |
MFH (fix some to long property strings)
-rw-r--r-- | ext/domxml/php_domxml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 272afbc08c..2f7b5417c2 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -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); @@ -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); } @@ -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 |