Bug #14934 Updated: type property not set in comment nodes

From: Date: Fri, 25 Jan 2002 07:39:55 +0000
Subject: Bug #14934 Updated: type property not set in comment nodes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78083@lists.php.net to get a copy of this message
ID: 14934 Updated by: derick Reported By: jtate@mi-corporation.com Old Status: Open Status: Closed Bug Type: DOM XML related Operating System: Linux 2.4.9-RH 7.2 PHP Version: 4.1.1 New Comment: Fixed in CVS, thx Previous Comments: ------------------------------------------------------------------------ [2002-01-24 14:36:01] jtate@mi-corporation.com Is anyone going to do anything about this? If not could I get CVS commit access so that I can make the change myself? ------------------------------------------------------------------------ [2002-01-08 15:17:18] jtate@mi-corporation.com The domxml_node->type property is not set for nodes of type XML_COMMENT_NODE. The following patch fixes the problem. --- ext/domxml/php_domxml.c.orig Tue Jan 8 15:09:30 2002 +++ ext/domxml/php_domxml.c Tue Jan 8 15:10:12 2002 @@ -819,6 +819,7 @@ rsrc_type = le_domxmlcommentp; content = xmlNodeGetContent(nodep); if (content) + add_property_long(wrapper, "type", Z_TYPE_P(nodep )); add_property_stringl(wrapper, "content", (char *) content, strlen(content), 1); break; } Please e-mail if you wish more information. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14934&edit=1

« previous php.dev (#78083) next »