Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107358 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58001 invoked from network); 1 Oct 2019 17:44:52 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 1 Oct 2019 17:44:52 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 3F9612D1FC7 for ; Tue, 1 Oct 2019 08:25:32 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE, HTML_OBFUSCATE_05_10,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Tue, 1 Oct 2019 08:25:31 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id b19so20887150iob.4 for ; Tue, 01 Oct 2019 08:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2tJzRs6oI4WX6ejeueUlUgkf0xQaPOqSpRlQm5WazxE=; b=M1aEw2vf3pMp01zM+KTItMRcjAhCuwQfKu3M3/4aZeeMzSD6dXsM6f4BkLGVbRRyp+ +8y9EttKI2YMUN4IsSRNmz8SaY4h7L6jftxcIGMrolkWyrx0pAqk7z+zBEXuRzVvmfd5 Dy5Ar+3AwKn+P3EFWSmOdtIqgOAmRweP41EPBS00fmvp2I3cUvGKuGMe0EQmpc/+NSUB jWh2no4ohqTxNVQE8r3mZAT8yHom5mSPFE5QhaQYpAjUzWyG68xnCC7wlvayPsoh6ir0 QQu7brZNLopg3vrG+z2DYvpS5RzW6cDAeO+SksggCMmjJTyUf7yM5GVgQgA5c5nFZ6W9 RTew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2tJzRs6oI4WX6ejeueUlUgkf0xQaPOqSpRlQm5WazxE=; b=fpCfjMyg0KjsSbEuiQh+3PWYW+xv432Fgh6HJHradr3UiF0xnzPTjfsfZnrrgLBhSt AZs4lvKmPUkY1i2Q0nJtUYihIb990tUeED40wwojbJzJPsLIlWR749ps8+7wim0ZybPn /iXw7M/QFnGS6pWiX2JEaV5HPlp5aAJ6a0RCuU/TLeq6dwVKmMZuZ9JhRiTcwFobqX1u QdXorZmpggBg5gaXGF1ECLafsca7hYQ3wM5xUsfyN8bTEPdSSe3PVJcBYVW2yROBxqY9 jjQjnZQO49UGvS6xahplN6eMag3hX/47as77sm3MZUlTj1nMW+J+YFFBBwUOl2ieGTlP CQgw== X-Gm-Message-State: APjAAAVcUo2p30fvFobQcOHrKJTDa++QeV/SvUygZEByvZmJlhrpTqFl tCK41UZbzULZdgJXXpjSpdrxRfgbFzMpZBanJjU= X-Google-Smtp-Source: APXvYqzBfIn/Zr0JpkVoGOOc/l6Mz9LdCDufiee94bn5R/HUSMqbocg58Q9fpdUgGPfwccEMAoIePw2bsZVsXfrprfs= X-Received: by 2002:a5d:8b12:: with SMTP id k18mr12742087ion.93.1569943531021; Tue, 01 Oct 2019 08:25:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 1 Oct 2019 17:25:19 +0200 Message-ID: To: Rasmus Lerdorf Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000007be8470593daf6c3" X-Envelope-From: Subject: Re: [PHP-DEV] Error when POST / upload limits are exceeded From: benjamin.morel@gmail.com (Benjamin Morel) --0000000000007be8470593daf6c3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Perhaps a more generic $_SERVER['PHP_REQUEST_STATUS'] or something along those lines where you'd put the error message from https://www.php.net/manual/en/features.file-upload.errors.php as well. And add new states for these exceeded limits that aren't caught there. It would be nice if you just needed a single check instead of having to look for multiple things. Those are per-file error codes, that belong in each $_FILES entry, while the errors I'm talking about affect the whole request, so I'm afraid you cannot put these errors in the same place, nor can you extend the existing error codes, as they do not have the same scope! =E2=80=94 Benjamin --0000000000007be8470593daf6c3--