# Modifying existing resource pointers?

- Thread: https://externals.io/message/2261
- Original archive: https://news-web.php.net/php.internals/2261
- Started by jhml@gmx.net on 2003-06-10T09:16:48+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2261 — jhml@gmx.net — 2003-06-10T09:16:48+00:00

URL: https://externals.io/message/2261#2261

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
