Andrew Ballard wrote: >> This time I had set the upload_file_size and post_max_size to 3000Mb >> each, which probably didn't work. When I tried the 1900Mb file again >> I got this error: >> >> [Fri Aug 08 16:57:28 2008] [error] [client 192.168.2.113] PHP >> [Warning: >> POST Content-Length of 1992294868 bytes exceeds the limit >> of -1149239296 bytes in Unknown on line 0, referer >> >> >> /Per Jessen, Zürich > > Just a guess.... 3000MB exceeds the value of a 4-byte integer when > converted to bytes. -1149239296 is the signed equivalent of > 3145728000, which is 3000 * 1024 * 1024.
Ah, well spotted. So the max request size is stored as a signed 32bit number. > I'm guessing that since the upload size is greater than a (really > large) negative number, PHP is throwing an error. That's probably > where the 2GB figure comes from. That's certainly one place, but the 2Gb limitation is from HTTP or from apache. It's mentioned in the apache manual under "LimitRequestBody'. "This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body." /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php