cvs: php4(PHP_4_2_0) /ext/domxml php_domxml.c
| From: | Christian Stocker | Date: | Tue, 27 Aug 2002 08:41:26 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13703@lists.php.net to get a copy of this message | ||
chregu Tue Aug 27 04:41:26 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/domxml php_domxml.c
Log:
MFH (fix some to long property strings)
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.118.2.15 php4/ext/domxml/php_domxml.c:1.118.2.16
--- php4/ext/domxml/php_domxml.c:1.118.2.15 Tue Aug 27 03:26:33 2002
+++ php4/ext/domxml/php_domxml.c Tue Aug 27 04:41:25 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.118.2.15 2002/08/27 07:26:33 chregu Exp $ */
+/* $Id: php_domxml.c,v 1.118.2.16 2002/08/27 08:41:25 chregu Exp $ */
/* TODO
* - Support Notation Nodes
@@ -1075,7 +1075,7 @@
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 @@
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 @@
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