cvs: php4(PHP_4_0_7) /ext/domxml php_domxml.c
| From: | Joey Smith | Date: | Tue, 21 Aug 2001 21:51:23 +0000 |
| Subject: | cvs: php4(PHP_4_0_7) /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7000@lists.php.net to get a copy of this message | ||
joey Tue Aug 21 17:51:23 2001 EDT
Modified files: (Branch: PHP_4_0_7)
/php4/ext/domxml php_domxml.c
Log:
MFH
Some changes to help out previous users of domxml...
node::tagname == node::name.
Add property "type" to textnode types.
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.67 php4/ext/domxml/php_domxml.c:1.67.2.1
--- php4/ext/domxml/php_domxml.c:1.67 Tue Aug 14 04:23:22 2001
+++ php4/ext/domxml/php_domxml.c Tue Aug 21 17:51:22 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.67 2001/08/14 08:23:22 joey Exp $ */
+/* $Id: php_domxml.c,v 1.67.2.1 2001/08/21 21:51:22 joey Exp $ */
#ifdef HAVE_CONFIG_H
@@ -191,6 +191,7 @@
static zend_function_entry php_domxmlelement_class_functions[] = {
PHP_FALIAS(domelement, domxml_element, NULL)
+ PHP_FALIAS(name, domxml_elem_tagname, NULL)
PHP_FALIAS(tagname, domxml_elem_tagname, NULL)
PHP_FALIAS(get_attribute, domxml_elem_get_attribute, NULL)
PHP_FALIAS(set_attribute, domxml_elem_set_attribute, NULL)
@@ -669,8 +670,10 @@
object_init_ex(wrapper, domxmltext_class_entry);
rsrc_type = le_domxmltextp;
content = xmlNodeGetContent(nodep);
- if (content)
+ if (content) {
+ add_property_long(wrapper, "type", nodep->type);
add_property_stringl(wrapper, "content", (char *) content, strlen(content), 1);
+ }
break;
}