cvs: php4 /ext/domxml php_domxml.c
| From: | Derick Rethans | Date: | Fri, 25 Jan 2002 07:40:38 +0000 |
| Subject: | cvs: php4 /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9175@lists.php.net to get a copy of this message | ||
derick Fri Jan 25 02:40:38 2002 EDT
Modified files:
/php4/ext/domxml php_domxml.c
Log:
- Fix for bug #14934: type property not set in comment nodes (domxml)
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.113 php4/ext/domxml/php_domxml.c:1.114
--- php4/ext/domxml/php_domxml.c:1.113 Tue Jan 22 13:47:06 2002
+++ php4/ext/domxml/php_domxml.c Fri Jan 25 02:40:38 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.113 2002/01/22 18:47:06 jarkol Exp $ */
+/* $Id: php_domxml.c,v 1.114 2002/01/25 07:40:38 derick Exp $ */
/* TODO
* - Support Notation Nodes
@@ -960,8 +960,10 @@
object_init_ex(wrapper, domxmlcomment_class_entry);
rsrc_type = le_domxmlcommentp;
content = xmlNodeGetContent(nodep);
- if (content)
+ if (content) {
+ add_property_long(wrapper, "type", Z_TYPE_P(nodep));
add_property_stringl(wrapper, "content", (char *) content, strlen(content), 1);
+ }
break;
}