Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118615 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27922 invoked from network); 13 Sep 2022 18:07:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Sep 2022 18:07:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AD74B1804AB for ; Tue, 13 Sep 2022 11:07:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 13 Sep 2022 11:07:04 -0700 (PDT) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1274ec87ad5so34417152fac.0 for ; Tue, 13 Sep 2022 11:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=3dXz8I0ZsOg5+LfcRVOoxBpMawrJHKin9htQQek+5cQ=; b=O+cGVuUVjZHGMsMEhEsoj+9nohPO180JtoXPdEQVFTd9Pr1RRq6plfbKjGgmNNW6JD zH7YTqvUA0YauTl+Yu3VZ2/fyvwVQTBjzJl+BUt+emdiagQGrXAC6Y9JVMCkvpMr3CEy wjFuxnL29tcB3FkZk3RmOxm1OhZ82HS3IQ1UJcQVJDGqp2XhPg4j8sA7YwCPsXwy0BBj CYyOuaqKYib6xN7AP54Pcu3eS6MBUoHBg4tlt0gNY0Uu88Mdi+QxFh/45/zjAuVrcWwk KRsVuU/6mTgqZJ4TV1b2d/dar3+kvqiscWF1szK3momxUk8eZ7/OCKQgvoXhuiOUD+cp fsyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=3dXz8I0ZsOg5+LfcRVOoxBpMawrJHKin9htQQek+5cQ=; b=ZGms3b9rLzp6FGnPtkDbRXnG/Obev1CVGrNFc8WEtvgXIybBx/FQCMTLYYfUa7nq0H 1LQLF2Zn1g7edoS0kSAyTwEV7WKF3WyYFPcQLsYkBUcAZ0D6HCIJIPrASS8CPZmLjILR JCiR/+ImJrfek7hb0W7/kVL2d8j6n7eoBiIa1Y4ZbGPYg0h/jLN66h+DktTgCS9RDGYy P4En2HrtiWJC246xYumFyoYHnw4DfV1UGsMAHOEvvQPpPM84Az/5CCHEmItyK9Le/588 4EVUYv8uNke0a/VrZXimIH2eoki6pFOkl6YMhtqkXWwCRkqDIYUH2OLv1HBEHKgpVwA3 hjhQ== X-Gm-Message-State: ACgBeo23GgWHYKkOjw/kFK/dbAf/gv3YHNA6/iZr5Y6w59jjqfCzqxXo WF/lTguW9AOYgCF6DI/33ou1hBtdWRCu533qIHzp6Z2nXxk= X-Google-Smtp-Source: AA6agR7HJOO+Cjb3M9CF9wF5LOtgNE6w0CNKsk4D+heWcJ3guiCwsjZQOIxP3POJ/iObtGnjBIMy2R/Fql95kw2oCqg= X-Received: by 2002:a05:6870:63a5:b0:127:82f6:4bb6 with SMTP id t37-20020a05687063a500b0012782f64bb6mr262645oap.211.1663092423581; Tue, 13 Sep 2022 11:07:03 -0700 (PDT) MIME-Version: 1.0 References: <8479bc9a-6ed6-0cf1-c727-123e2b87a8d6@dafert.at> In-Reply-To: <8479bc9a-6ed6-0cf1-c727-123e2b87a8d6@dafert.at> Date: Tue, 13 Sep 2022 20:06:54 +0200 Message-ID: To: Mel Dafert Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000022e74705e892e1b7" Subject: Re: [PHP-DEV] Error behaviour for max_input_vars From: deleugyn@gmail.com (Deleu) --00000000000022e74705e892e1b7 Content-Type: text/plain; charset="UTF-8" On Tue, Sep 13, 2022, 7:58 PM Mel Dafert wrote: > The options I see feasible are: > - A new ini setting `max_input_vars_abort` (default to 0), which, if set > to 1, will abort the request if there are more input variables than > allowed. > - A method to reliably detect whether the input vars were truncated (eg. > `function has_post_been_truncated(): bool`), so the application can > decide whether to abort or not. > - Deciding that `max_input_vars` is not relevant anymore and should be > handled by the likes of Apache and NGINX, thus changing the default to > `0` and removing the setting > over a deprecation period. Creating more ini settings is not very exciting. I do really like option 2 though. --00000000000022e74705e892e1b7--