Re: [PHP-DEV] Error when POST / upload limits are exceeded

2019-10-01 Thread Thomas Hruska
On 10/1/2019 1:26 PM, Rasmus Lerdorf wrote: On Tue, Oct 1, 2019 at 8:25 AM Benjamin Morel wrote: Perhaps a more generic $_SERVER['PHP_REQUEST_STATUS'] or something along those lines where you'd put the error message from https://www.php.net/manual/en/features.file-upload.errors.php as well. A

Re: [PHP-DEV] Error when POST / upload limits are exceeded

2019-10-01 Thread Rasmus Lerdorf
On Tue, Oct 1, 2019 at 8:25 AM Benjamin Morel wrote: > > Perhaps a more generic $_SERVER['PHP_REQUEST_STATUS'] or something along > those lines where you'd put the error message from > https://www.php.net/manual/en/features.file-upload.errors.php as well. > And add new states for these exceeded l

Re: [PHP-DEV] Error when POST / upload limits are exceeded

2019-10-01 Thread Benjamin Morel
> Perhaps a more generic $_SERVER['PHP_REQUEST_STATUS'] or something along those lines where you'd put the error message from https://www.php.net/manual/en/features.file-upload.errors.php as well. And add new states for these exceeded limits that aren't caught there. It would be nice if you just ne

Re: [PHP-DEV] Error when POST / upload limits are exceeded

2019-10-01 Thread Rasmus Lerdorf
On Tue, Oct 1, 2019 at 6:32 AM Benjamin Morel wrote: > > We have https://www.php.net/manual/en/features.file-upload.errors.php but > in general this is not so easy to make more convenient because this runs > before your PHP code starts to run, so it is not like you can stick it in a > try/catch.

Re: [PHP-DEV] Error when POST / upload limits are exceeded

2019-10-01 Thread Benjamin Morel
> We have https://www.php.net/manual/en/features.file-upload.errors.php but in general this is not so easy to make more convenient because this runs before your PHP code starts to run, so it is not like you can stick it in a try/catch. Hi Rasmus, These errors are only relevant when you have somet

Re: [PHP-DEV] Error when POST / upload limits are exceeded

2019-10-01 Thread Rasmus Lerdorf
On Tue, Oct 1, 2019 at 1:00 AM Benjamin Morel wrote: > Hi internals, > > One thing that always bugged me is how PHP silently ignores data that > exceeds the limits defined in php.ini. > > For example, posting a form exceeding post_max_size results in empty $_POST > and $_FILES, with no error mess

[PHP-DEV] Error when POST / upload limits are exceeded

2019-10-01 Thread Benjamin Morel
Hi internals, One thing that always bugged me is how PHP silently ignores data that exceeds the limits defined in php.ini. For example, posting a form exceeding post_max_size results in empty $_POST and $_FILES, with no error message whatsoever. This has bugged a few more people than just myself,