private static bool EndInternal(Context/*!*/ ctx, bool flush)
{
BufferedOutput buf = ctx.BufferedOutput;
if (buf.Level == 0)
{
//PhpException.Throw(PhpError.Notice, CoreResources.GetString("output_buffering_disabled"));
//return false;
throw new NotImplementedException();
}
if (buf.DecreaseLevel(flush) < 0)
ctx.IsOutputBuffered = false;
return true;
}