Re: Q: ZEND_HANDLE_STREAM and wincache extension on PHP 5.4
On Wed, 21 Mar 2012 07:46:31 +0100, Dmitry Stogov <[email protected]> wrote:
Anyway, I don't see a way to fix PHP to support custom streams without BC break, because zend_streams doesn't provide handlers for seeking.
Couldn't you at least check whether e.g. the closer function pointer is php_zend_stream_closer and only then assume it wraps a php_stream? If it was not, you'd have to abandon shebang detection, but I think that's a minor problem.
--
Gustavo Lopes
Thread (8 messages)