v9.36.0: Bug for call stack in logging and ErrorMessage class

This commit is contained in:
Clemens Schwaighofer
2025-11-27 18:08:15 +09:00
parent 9079d3120f
commit 3b1f8745c2
4 changed files with 92 additions and 22 deletions

View File

@@ -77,7 +77,7 @@ class Byte
// labels in order of size [Y, Z]
$labels = ['', 'K', 'M', 'G', 'T', 'P', 'E'];
// exp position calculation
$exp = floor(log($abs_bytes, $unit));
$exp = (int)floor(log($abs_bytes, $unit));
// avoid printing out anything larger than max labels
if ($exp >= count($labels)) {
$exp = count($labels) - 1;