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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to