Bug->Doc #74112 [Opn->Nab]: about the warning if $_POST truncated due to max_input_vars

From: Date: Sun, 11 Mar 2018 17:15:02 +0000
Subject: Bug->Doc #74112 [Opn->Nab]: about the warning if $_POST truncated due to max_input_vars
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15510@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74112&edit=1 ID: 74112 Updated by: cmb@php.net Reported by: teo8976 at gmail dot com Summary: about the warning if $_POST truncated due to max_input_vars -Status: Open +Status: Not a bug -Type: Bug +Type: Documentation Problem Package: *General Issues PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > […] 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. Previous Comments: ------------------------------------------------------------------------ [2017-02-16 18:32:51] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74112&edit=1

« previous php.doc.bugs (#15510) next »