Re: [PATCH] libxml - Move Callback Reg to Request Init

From: Date: Fri, 28 May 2004 16:41:43 +0000
Subject: Re: [PATCH] libxml - Move Callback Reg to Request Init
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-10163@lists.php.net to get a copy of this message
On Fri, 28 May 2004, Rob Richards wrote: > Is it possible to know wether a function is being called from a php context > or not? I am not sure how. We know if we are in the middle of parsing a PHP script, but that doesn't necessarily mean that the libxml call is from a PHP context. We could be calling some 3rd-party library that knows nothing about PHP that happens to use libxml. But, when called from a PHP context then we control the caller, so we could pass along a hint somehow, couldn't we? > 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. Hrm. I wonder why that is? But that does mean this patch definitely shouldn't go in. -Rasmus

« previous php.internals (#10163) next »