[php-src] PR #25909: ext/session: Fix stale upload progress bytes_processed after the last file
| From: | jorgsowa | Date: | Sun, 29 Nov 2026 21:57:34 +0000 |
| Subject: | [php-src] PR #25909: ext/session: Fix stale upload progress bytes_processed after the last file | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41218@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25909
Author: jorgsowa
With
session.upload_progress.cleanup=0, the final upload progress record can have
done => true but a bytes_processed lower than
content_length.
At MULTIPART_EVENT_END, progress->data is still shared with
$_SESSION, so SEPARATE_ARRAY() copies it. The final byte count is then
written through progress->post_bytes_processed, which still points into the old
copy, and the saved record misses it. This shows up when form data after the last file pushes the
body past the next 5 KB read chunk.