RE: [PHP-DEV] Revisiting output control code

From: Date: Mon, 27 Feb 2006 12:49:29 +0000
Subject: RE: [PHP-DEV] Revisiting output control code
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message

> 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


Thread (13 messages)

« previous php.internals (#22030) next »