Skip to content

Commit 810401c

Browse files
committed
fix(hot-reloader): disable zlib compression with falsey value
- set `zlib.output_compression` to 0 instead of Off at runtime - document the HotReloader fix Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent f5ad0cb commit 810401c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

system/HotReloader/HotReloader.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ public function run(): void
2424
session_write_close();
2525
}
2626

27-
ini_set('zlib.output_compression', 'Off');
27+
// Use "0" because ini_get() returns "Off" as a truthy string at runtime.
28+
ini_set('zlib.output_compression', '0');
2829

2930
header('Cache-Control: no-store');
3031
header('Content-Type: text/event-stream');

user_guide_src/source/changelogs/v4.7.3.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Bugs Fixed
4545
- **Database:** Fixed a bug where ``BaseConnection::listTables()`` could return a sparse array when using cached table names after a table was dropped.
4646
- **Database:** Fixed a bug where the PostgreSQL driver's ``increment()`` and ``decrement()`` methods were not working for numeric columns.
4747
- **Database:** Fixed a bug where the SQLSRV driver's decrement method was adding instead of subtracting the decrement value when ``$castTextToInt`` was false.
48+
- **HotReloader:** Fixed a bug where disabling ``zlib.output_compression`` could leave a truthy ``Off`` runtime value that caused later requests in long-running workers to fail the output-buffer guard.
4849
- **Kint:** Fixed a bug where stale Content Security Policy nonces were reused in worker mode, causing browser CSP violations for Debug Toolbar assets.
4950
- **Language:** Fixed a bug where ``Language::getLine()`` returned the literal dot-notation key instead of the nested array value when the requested key resolved to an intermediate array three or more levels deep.
5051
- **Toolbar:** Fixed a bug where the Logs collector raised an undefined property error when using a third-party PSR-3 logger.

0 commit comments

Comments
 (0)