Skip to content

Commit 212979d

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: 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 add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support FormBuilderInterface: fix getForm() return type. Fixed typo in PHPDoc
2 parents 1ef9c1c + 2a8b717 commit 212979d

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
@@ -150,6 +150,14 @@ public function terminate(Request $request, Response $response)
150150
}
151151

152152
if ($this->getHttpKernel() instanceof TerminableInterface) {
153+
if (!$this->debug) {
154+
if (function_exists('fastcgi_finish_request')) {
155+
fastcgi_finish_request();
156+
} elseif ('cli' !== PHP_SAPI) {
157+
Response::closeOutputBuffers(0, true);
158+
}
159+
}
160+
153161
$this->getHttpKernel()->terminate($request, $response);
154162
}
155163
}

0 commit comments

Comments
 (0)