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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php