php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64319 max_input_vars warning unknown file
Submitted: 2013-02-28 12:59 UTC Modified: 2013-03-01 03:10 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: david at davidsteinsland dot net Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5.4.12 OS: CentOS
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david at davidsteinsland dot net
New email:
PHP Version: OS:

 

 [2013-02-28 12:59 UTC] david at davidsteinsland dot net
Description:
------------
When PHP raises a warning about max_input_vars being exceeded, it would be very helpful to see which file actually caused the error. The current error message just says "Unknown on line 0".

Expected result:
----------------
Script file name

Actual result:
--------------
Unknown file

Patches

display-the-requested-script-file-name (last revision 2013-02-28 18:18 UTC by reeze@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-28 18:17 UTC] reeze@php.net
-Type: Bug +Type: Feature/Change Request
 [2013-02-28 18:18 UTC] reeze@php.net
The following patch has been added/updated:

Patch Name: display-the-requested-script-file-name
Revision:   1362075497
URL:        https://bugs.php.net/patch-display.php?bug=64319&patch=display-the-requested-script-file-name&revision=1362075497
 [2013-03-01 03:10 UTC] laruence@php.net
-Status: Open +Status: Wont fix
 [2013-03-01 03:10 UTC] laruence@php.net
I don't think there is one way to find out "which file caused the error", since 
it is caused by the client who send the request. so actually this most useful 
info will be the referer:

"PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit 
change max_input_vars in php.ini. in Unknown on line 0, referer: 
https://****.comm/index.php"

and when this warning raise, it still at `startup` phase, no really script be 
executed. 

so IMO 'Unknown on line' make sense .


and the reeze's patch won't help much more. there are a lots of applications are 
single entry, thinking about the ZF application etc.

so the patch will make nothing useful but cause confuse.

and do you really need more than 1000 vars be accepted? if in that case, I think 
you should opitimize your application..

mark as won't fix.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 13:01:33 2025 UTC