Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:630 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67484 invoked from network); 3 Apr 2003 09:27:18 -0000 Received: from unknown (HELO mail.digarc.com) (216.204.113.51) by pb1.pair.com with SMTP; 3 Apr 2003 09:27:18 -0000 Received: from ctd01 (dsta-aa203.pivot.net [66.186.171.203]) by mail.digarc.com (8.11.6/8.11.2) with SMTP id h33BDKE26950 for ; Thu, 3 Apr 2003 06:13:20 -0500 Message-ID: <00cc01c2f9c3$d71287d0$06dea8c0@cyberware.local> To: "php-dev" References: <1048001497.1516.3.camel@localhost.localdomain> <001901c2ed6f$b3be6f70$0301a8c0@TRABAJOS2> <016701c2f156$f6d83080$06dea8c0@cyberware.local> <004001c2f704$ceee0370$06dea8c0@cyberware.local> <20030331181825.GB32131@schnuffel.thieso.net> Date: Thu, 3 Apr 2003 04:31:43 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: patch: domxml - set_attirubte_node implmentation From: rrichards@digarc.com ("Rob Richards") Here is a patch for domxml which implements the set_attribute_node method. Located at: http://www.digarc.com/php_domxml.diff One thing to note is in the section where an attribute already exists. As there can't be dunplicate attributes, only the content from the new attribute node is moved to the existing attribute node. Unlinking the origional attribute node could potential cause a memory leak as it may never be freed. Rob