# [PATCH] libxml - Move Callback Reg to Request Init

- Thread: https://externals.io/message/10104
- Original archive: https://news-web.php.net/php.internals/10104
- Started by Paul Querna on 2004-05-27T05:13:52+00:00
- Messages: 2
- 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

---

## #10104 — Paul Querna — 2004-05-27T05:13:52+00:00

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

Patch Moves the Registering of the PHP XML Streams to the request init,
instead of installing them globaly in the Module init.

This is needed if any other Apache modules use libxml2 on a non-php
request.  If this patch is not applied, any other use of libxml2 in the
same process will likely fail when the PHP callbacks are called.

Thanks,

-Paul Querna

---

## #10123 — Andi Gutmans — 2004-05-27T21:55:14+00:00

URL: https://externals.io/message/10104#10123 · In reply to: #10104

Anyone see a problem with this patch? If not, I'd like to include it in RC3 
because it makes sense.

Andi

At 10:13 PM 5/26/2004 -0700, Paul Querna wrote:
>Patch Moves the Registering of the PHP XML Streams to the request init,
>instead of installing them globaly in the Module init.
>
>This is needed if any other Apache modules use libxml2 on a non-php
>request.  If this patch is not applied, any other use of libxml2 in the
>same process will likely fail when the PHP callbacks are called.
>
>Thanks,
>
>-Paul Querna
