diff options
author | Ralf Lang <lang@b1-systems.de> | 2013-06-28 08:32:10 +0200 |
---|---|---|
committer | Ralf Lang <lang@b1-systems.de> | 2013-06-28 08:32:10 +0200 |
commit | da04b2e28c6ccc73bfab542ed4dd5eada343e592 (patch) | |
tree | 3dbad4a8bd509d0cfa5c6e09c9e7877c766ac1c0 /main/php_variables.c | |
parent | a441d9274b0045de20402b3912d04ca3de57365d (diff) | |
download | php-git-da04b2e28c6ccc73bfab542ed4dd5eada343e592.tar.gz |
Patch for https://bugs.php.net/bug.php?id=44522 to allow uploading files
above 2G.
This is essentially the same as the patch
"uploads_larger_than_2g_HEAD_v2 (last revision 2012-03-26 03:59 UTC) by
jason at infininull dot com)" but using off_t instead of signed long
(originally: uint)
I tested this on 64bit linux and succeeded uploading a file of 4.8 G.
The File did not get corrupted or truncated in any way.
I did not yet test this under windows or 32 bit linux
Note that there are still limitations:
* Did not test for files > 8 G
* php does not yet reject absurdly high values
* Still limited by underlying file system specific limits and free space
* in upload
* tmp dir and destination dir
Diffstat (limited to 'main/php_variables.c')
0 files changed, 0 insertions, 0 deletions