Mercurial > hg > rc1
comparison plugins/zipdownload/zipdownload.php @ 51:b80b258cc02c
More cleaning up php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Wed, 08 Oct 2025 08:50:06 -0400 |
| parents | 1e000243b222 |
| children |
comparison
equal
deleted
inserted
replaced
| 50:e09cef17c56c | 51:b80b258cc02c |
|---|---|
| 373 } | 373 } |
| 374 } | 374 } |
| 375 | 375 |
| 376 class zipdownload_mbox_filter extends php_user_filter | 376 class zipdownload_mbox_filter extends php_user_filter |
| 377 { | 377 { |
| 378 function filter($in, $out, &$consumed, $closing) | 378 function filter($in, $out, &$consumed, $closing) : int |
| 379 { | 379 { |
| 380 while ($bucket = stream_bucket_make_writeable($in)) { | 380 while ($bucket = stream_bucket_make_writeable($in)) { |
| 381 // messages are read line by line | 381 // messages are read line by line |
| 382 if (preg_match('/^>*From /', $bucket->data)) { | 382 if (preg_match('/^>*From /', $bucket->data)) { |
| 383 $bucket->data = '>' . $bucket->data; | 383 $bucket->data = '>' . $bucket->data; |
