Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2261 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45412 invoked from network); 10 Jun 2003 09:16:50 -0000 Received: from unknown (HELO mx0.gmx.net) (213.165.64.100) by pb1.pair.com with SMTP; 10 Jun 2003 09:16:50 -0000 Received: (qmail 17380 invoked by uid 0); 10 Jun 2003 09:16:49 -0000 Date: Tue, 10 Jun 2003 11:16:48 +0200 (MEST) To: internals@lists.php.net MIME-Version: 1.0 X-Priority: 3 (Normal) X-Authenticated-Sender: #0013703797@gmx.net X-Authenticated-IP: [62.245.214.203] Message-ID: <23084.1055236608@www49.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Modifying existing resource pointers? From: jhml@gmx.net Hi, i'm currently working on adding xmlsec support to the domxml extension. The main C api call of the xmlsec library is: xmlSecEncCtxXmlEncrypt(encCtx, encDataNode, nodep); Which takes a node pointer (nodep), encrypts it and puts the encrypted result into another node pointer (encDataNode). In the PHP domxml extension these node pointers are implemented via a resource (which itself is a property of an object, but that doesn't matter here). While it's possible to retrieve the pointer of a resource, I didn't find a way to modify it, which I'd need to do after the xmlSecEncCtxXmlEncrypt() call. So is there actually a way to modify a resource pointer after the resource has been created? Or should I use a xmlNode ** as the pointer type for the resource here (which would probably require a emalloc())? Cheers, Jonny