Problem with ext/libxml RINIT/RSHUTDOWN
| From: | Dmitry Stogov | Date: | Fri, 17 Mar 2006 11:32:50 +0000 |
| Subject: | Problem with ext/libxml RINIT/RSHUTDOWN | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-22502@lists.php.net to get a copy of this message | ||
Hi Wez,
I found a bad code in ext/libxml.
On each request startup/shutdown it changing some libxml callbacks.
At first this slowdown each request, at second multi-threaded PHP may fail,
because different threads may set/clean the same callbacks in the same time.
May be it is possible to setup these callbacks forever in MINIT/MSHUTDOWN,
set some flag (somthing like LIBXML(in_request)) in RINIT/RSHUTDOWN, and
check it in callbacks.
Thanks. Dmitry.