manually control timeout, to dump trace data after hitting the limit

This commit is contained in:
Shish
2023-06-25 13:39:03 +01:00
parent 1d4c43f33b
commit b85e7ec209
10 changed files with 47 additions and 11 deletions

View File

@@ -173,7 +173,6 @@ function stream_file(string $file, int $start, int $end): void
{
$fp = fopen($file, 'r');
try {
set_time_limit(0);
fseek($fp, $start);
$buffer = 1024 * 1024;
while (!feof($fp) && ($p = ftell($fp)) <= $end) {