Revisiting output control code

From: Date: Mon, 27 Feb 2006 11:51:31 +0000
Subject: Revisiting output control code
Groups: php.internals 
Request: Send a blank email to internals+get-22029@lists.php.net to get a copy of this message
Hi,

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?

Regards,
-- 
Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz


Thread (13 messages)

« previous php.internals (#22029) next »