php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26986 make error message for exceding post_max_size friendlier
Submitted: 2004-01-21 01:42 UTC Modified: 2018-05-05 17:32 UTC
Votes:4
Avg. Score:3.2 ± 0.8
Reproduced:1 of 3 (33.3%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: felix at students dot poly dot edu Assigned: requinix (profile)
Status: Closed Package: *General Issues
PHP Version: 4.3.4 OS: Linux 2.6.1
Private report: No CVE-ID: None
 [2004-01-21 01:42 UTC] felix at students dot poly dot edu
Description:
------------
I recently made a mistake in php.ini file
I have typed
post_max_size=24MB 

Php took this as 24 bytes. Maybe the checking should be stricter there too. 

The warning was not very clear it was like
Warning Unknown() Actual POST size did not match Contnet-Lenigh and exceding 24 bytes.

Warning should be error and it should be clear like
"Size of Post message exceded maximum allowed size of 24bytes"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-05 17:32 UTC] requinix@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: requinix
 [2018-05-05 17:32 UTC] requinix@php.net
Old request is old.

Current message is
> POST Content-Length of $X bytes exceeds the limit of $Y bytes
which sounds clear to me.
 [2018-05-05 17:38 UTC] spam2 at rhsoft dot net
But the "unknown" is nonsense and annoying for many years given that this can be set per directory and php for sure knows the called script
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 19 06:01:26 2019 UTC