php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74112 about the warning if $_POST truncated due to max_input_vars
Submitted: 2017-02-16 18:32 UTC Modified: 2018-03-11 17:15 UTC
From: teo8976 at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: teo8976 at gmail dot com
New email:
PHP Version: OS:

 

 [2017-02-16 18:32 UTC] teo8976 at gmail dot com
Description:
------------
From manual page: http://php.net/manual/en/info.configuration.php#ini.max-input-vars

> If there are more input variables than specified by this directive, 
> an E_WARNING is issued, and further input variables are truncated from the 
> request.

A note should be added similar to this:

"""
Note that in order for the warning to be issued, the error_reporting directive must be set to include E_WARNING in php.ini/.htaccess either globally or per directory (it's not enough to set it via ini_set())
Also, in order for the warning to be displayed, **both** the display_errors and display_startup_errors directives must be set to true in php.ini/.htaccess either globally or per directory (it's not enough to set them via ini_set()).
"""

I suspect the second part could be even argued to be a bug, but either way, it must be documented here because it's far from obvious.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-11 17:15 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Type: Bug +Type: Documentation Problem -Assigned To: +Assigned To: cmb
 [2018-03-11 17:15 UTC] cmb@php.net
> […] it must be documented here because it's far from obvious.

Well, actually, it is obvious.  The behavior of error_reporting
and display_(startup_)errors are documented elsewhere – it would
not be helpful to duplicate this information on every single page
of the documentation.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 13:01:31 2024 UTC