Edit report at https://bugs.php.net/bug.php?id=64319&edit=1

 ID:                 64319
 Updated by:         larue...@php.net
 Reported by:        david at davidsteinsland dot net
 Summary:            max_input_vars warning unknown file
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
 Package:            *General Issues
 Operating System:   CentOS
 PHP Version:        5.4.12
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2013-02-28 18:18:17] re...@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-02-28 12:59:09] 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


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64319&edit=1

Reply via email to