Skip to content

Commit f314a0f

Browse files
committed
Merge branch '2.8' into 3.0
* 2.8: fixed CS fixed CS tweaked default CS fixer config [HttpKernel] Dont close the output stream in debug move HttpKernel component to require section Fixed oci and sqlsrv merge queries when emulation is disabled - fixes #17284 [Session] fix PDO transaction aborted under PostgreSQL [Console] Use InputInterface inherited doc as possible Mention generating absolute urls in UPGRADE files and CHANGELOG add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support FormBuilderInterface: fix getForm() return type. Fixed typo in PHPDoc
2 parents f5a434e + 212979d commit f314a0f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Kernel.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ public function terminate(Request $request, Response $response)
134134
}
135135

136136
if ($this->getHttpKernel() instanceof TerminableInterface) {
137+
if (!$this->debug) {
138+
if (function_exists('fastcgi_finish_request')) {
139+
fastcgi_finish_request();
140+
} elseif ('cli' !== PHP_SAPI) {
141+
Response::closeOutputBuffers(0, true);
142+
}
143+
}
144+
137145
$this->getHttpKernel()->terminate($request, $response);
138146
}
139147
}

0 commit comments

Comments
 (0)