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

From: Date: Sun, 30 May 2004 22:18:13 +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-10194@lists.php.net to get a copy of this message
From: Andi Gutmans > 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. Yup, this method should only be called during a request. I tested it out with mod_xslt and it seemed to work correctly. mod_xslt would safely exit from the function ignoring our streams handler. It seems to reset to 0 after a php script hits it, as a subsequent calls to the mod_xslt handler continuted to function correctly. The only question I have is will there be any problems if run in threaded mode as TSRMLS_FETCH() needs to be called. Thanks, Rob

« previous php.internals (#10194) next »