Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb68baf

Browse files
committed
feature #42332 [HttpFoundation] Add litespeed_finish_request to Response (thomas2411)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [HttpFoundation] Add `litespeed_finish_request` to `Response` | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | #42293 | License | MIT For now Litespeed has dropped support for `fastcgi_finish_request` function due to some problems: php/php-src@ccf051c so when Litespeed is being used on a server instead of Apache, then there is no possibility to use `fastcgi_finish_request` function as the alias for `litespeed_finish_request` is turned off. Commits ------- 5fb91a5 [HttpFoundation] Add `litespeed_finish_request` to `Response`
2 parents bf7470b + 5fb91a5 commit bb68baf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Symfony/Component/HttpFoundation/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
5.4
5+
---
6+
7+
* Add the `litespeed_finish_request` method to work with Litespeed
8+
49
5.3
510
---
611

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ public function send()
395395

396396
if (\function_exists('fastcgi_finish_request')) {
397397
fastcgi_finish_request();
398+
} elseif (\function_exists('litespeed_finish_request')) {
399+
litespeed_finish_request();
398400
} elseif (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
399401
static::closeOutputBuffers(0, true);
400402
}

0 commit comments

Comments
 (0)