Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 482e185

Browse filesBrowse files
committed
Revert "bug #19114 [HttpKernel] Dont close the reponse stream in debug (nicolas-grekas)"
This reverts commit a0cdcb0, reversing changes made to 9c8a3e9.
1 parent 30997a4 commit 482e185
Copy full SHA for 482e185

File tree

2 files changed

+6
-8
lines changed
Filter options

2 files changed

+6
-8
lines changed

‎src/Symfony/Component/HttpFoundation/Response.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Response.php
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,12 @@ public function send()
373373
$this->sendHeaders();
374374
$this->sendContent();
375375

376+
if (function_exists('fastcgi_finish_request')) {
377+
fastcgi_finish_request();
378+
} elseif ('cli' !== PHP_SAPI) {
379+
static::closeOutputBuffers(0, true);
380+
}
381+
376382
return $this;
377383
}
378384

‎src/Symfony/Component/HttpKernel/Kernel.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Kernel.php
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,6 @@ public function terminate(Request $request, Response $response)
149149
}
150150

151151
if ($this->getHttpKernel() instanceof TerminableInterface) {
152-
if (!$this->debug) {
153-
if (function_exists('fastcgi_finish_request')) {
154-
fastcgi_finish_request();
155-
} elseif ('cli' !== PHP_SAPI) {
156-
Response::closeOutputBuffers(0, true);
157-
}
158-
}
159-
160152
$this->getHttpKernel()->terminate($request, $response);
161153
}
162154
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.