Check output buffering level
This commit is contained in:
parent
9e5027a4a7
commit
16719ec28f
@ -4,7 +4,7 @@
|
||||
"dockerfile": "Dockerfile",
|
||||
"args": {
|
||||
// Update VARIANT to pick a PHP version: 7, 7.4, 7.3
|
||||
"VARIANT": "7",
|
||||
"VARIANT": "7.4",
|
||||
"INSTALL_NODE": "true",
|
||||
"NODE_VERSION": "lts/*"
|
||||
}
|
||||
@ -18,7 +18,9 @@
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"felixfbecker.php-debug",
|
||||
"felixfbecker.php-intellisense"
|
||||
"felixfbecker.php-intellisense",
|
||||
"getpsalm.psalm-vscode-plugin",
|
||||
"junstyle.php-cs-fixer"
|
||||
]
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
|
@ -946,8 +946,10 @@ trait Files
|
||||
if (!\in_array($result->getCode(), [Status::OK, Status::PARTIAL_CONTENT])) {
|
||||
yield Tools::echo($result->getCodeExplanation());
|
||||
} elseif ($result->shouldServe()) {
|
||||
if (\ob_get_level()) {
|
||||
\ob_end_flush();
|
||||
\ob_implicit_flush();
|
||||
}
|
||||
yield from $this->downloadToStream($messageMedia, \fopen('php://output', 'w'), $cb, ...$result->getServeRange());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user