> I'd like to suggest that we revisit the output control 
> (output buffering) code base.
> The current implementation uses way too less commands to do 
> too many different operations, which almost always causes 
> problems with output handlers that need to maintain a state 
> or context.
> 
> Short example:
> ob_clean() causes havoc with ext/zlib ob handlers and any 
> handlers found in pecl/http.
> ob_clean() passes currently buffered input through the 
> handler and discards it, which means in the case of the gz 
> handler that the gzip/zlib header bytes (and more) are 
> missing from the sent data.
> 
> Things I think that should come with the new code:
>       Support for an opaque handler context, which will be 
> passed to the handler.
>       More distinct commands like FLUSH, RESTART and/or CLEAN.
> Thoughts/comments/flames?

Sounds like should be built upon/replaced with streams.

Jared

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

Reply via email to