1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
* Cleans or flushes output buffers up to target level.
* Resulting level can be greater than target level if a non-removable buffer has been encountered.
public static function closeOutputBuffers(int $targetLevel, bool $flush): void
$status = ob_get_status(true);
$flags = PHP_OUTPUT_HANDLER_REMOVABLE | ($flush ? PHP_OUTPUT_HANDLER_FLUSHABLE : PHP_OUTPUT_HANDLER_CLEANABLE);
while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) {
* Checks if we need to remove Cache-Control for SSL encrypted downloads when using IE < 9.
* @see http://support.microsoft.com/kb/323308
protected function ensureIEOverSSLCompatibility(Request $request): void