Re: [PATCH] libxml - Move Callback Reg to Request Init
| From: | Andi Gutmans | Date: | Sun, 30 May 2004 10:25:50 +0000 |
| Subject: | Re: [PATCH] libxml - Move Callback Reg to Request Init | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10179@lists.php.net to get a copy of this message | ||
zend_is_executing() might work, but that is only if this method can only be called during script execution (which I'm not sure of). I'm also not sure if this is reset to 0 at the end of each request but that should be easy to fix.
Andi
At 11:54 AM 5/28/2004 -0400, Rob Richards wrote:
Is it possible to know wether a function is being called from a php context or not? If so, a check could be done in php_libxml_streams_IO_match_wrapper which if not under the php context, it would return 0 thus making the php registered streams useless for other applications. I also got a reponse from the libxml people and they indicate that trying to register and unregister the streams will not work reliably and basically they should be registered in the MINIT (where they currently are) to work correctly. Rob Is it not possible to do this at the time set_streams_context is called? I am weary of having this done per-request for all PHP requests regardless of whether or not they actually call anything in libxml. -Rasmus