Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

ob_start("ob_gzhandler"); in fBuffer::start

posted by o 9 years ago

Can you add this new implementatiom

	static public function start($gzip = FALSE)
	{
		if (self::$started) {
			throw new fProgrammerException(
				'Output buffering has already been started'
			);
		}
		if (self::$capturing) {
			throw new fProgrammerException(
				'Output capturing is currently active and it must be stopped before the buffering can be started'
			);
		}
                if ($gzip) {
                // is gzip active ? we can control in here or before
                ob_start("ob_gzhandler");
                }
                else {
		        ob_start();
                }
		self::$started = TRUE;
	}

Yes, I'd be fine with adding this functionality. Can you add a ticket so it doesn't get lost?

posted by wbond 9 years ago

Nope, i didnt open a ticket. I'll open

posted by o 9 years ago