Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118581 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93297 invoked from network); 8 Sep 2022 10:35:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Sep 2022 10:35:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 83FB71804AC for ; Thu, 8 Sep 2022 03:35:57 -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=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 ; Thu, 8 Sep 2022 03:35:57 -0700 (PDT) Received: by mail-ed1-f51.google.com with SMTP id 29so18567621edv.2 for ; Thu, 08 Sep 2022 03:35:57 -0700 (PDT) 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=oAUm6sONvowmwYzk9R8y48iQ4x8N4YVHSBIpZrYMaqo=; b=c9+6IsXpgzB0R3Yii9H3CRJj2d4crFzkKqO7e/KIXSIdqsDUdNMiDt9+wVhwDHx+0R wu0Ng6s2iyMf5G8i/ydt74GNIENUg+1eCncs7zEgcAKid8XRulFMX1Rr7uv5OR5OAOL/ blrJ77PWOzWhwZUTn/RXjJwvTv6/nn7nwjKQNJ04NAb/Lh+khvojZZvVHlEFECSQF2Qq svGjEyFl9pEVEYI9TI14LgvJZboNDRppfwugyZMzYiXSwaN56pgviOHMB3YJqMmX+p+x BS/zCbRvKiUZ7TsuzfIsiKtw7GJjJ1/HYDVBrUhQMaGe5JpfkO2CqaDY2vmcGjh6CN7u jxPA== X-Gm-Message-State: ACgBeo01I7o3cc1xfo1TeExRNkhq1GAM/HYuzyaXuTjNE+C53how88Qs SVfKHRehUMy7GUr7aZ3huuLJvutMc04qn0zrc5Y= X-Google-Smtp-Source: AA6agR7f3CygUh1hq3Ik8bCZyuPqEegdKHLwt8NEtZilNC2nozYyqg7SISFpfM0/PeTPJew4IiAJj2rEjc8rNHdMrls= X-Received: by 2002:a05:6402:43c4:b0:43b:c5eb:c9dd with SMTP id p4-20020a05640243c400b0043bc5ebc9ddmr6521276edc.402.1662633355709; Thu, 08 Sep 2022 03:35:55 -0700 (PDT) MIME-Version: 1.0 References: <60350e90-3f2a-df6b-fd56-ab6613a610eb@gmx.de> In-Reply-To: <60350e90-3f2a-df6b-fd56-ab6613a610eb@gmx.de> Date: Thu, 8 Sep 2022 11:35:44 +0100 Message-ID: To: "Christoph M. Becker" Cc: Misha , PHP internals list Content-Type: multipart/alternative; boundary="0000000000008f135605e827fe47" Subject: Re: [PHP-DEV] Re: Increase maximum size of an uploaded file to 50Mbyte From: bukka@php.net (Jakub Zelenka) --0000000000008f135605e827fe47 Content-Type: text/plain; charset="UTF-8" On Wed, Sep 7, 2022 at 3:28 PM Christoph M. Becker wrote: > On 07.09.2022 at 15:57, Misha wrote: > > > We spend a lot of time to increase limits for uploads file in PHP. Can we > > increase it in php.ini? > > > > Current value is 2Mb. Its so small value, when photo image can take 8Mb > on > > iPhone X. > > We should increase it to 50Mb, because DevOps engineers do useless work > > trying to change it. > > > > I have prepared PR for it https://github.com/php/php-src/pull/9315 > > I'm not against increasing the sizes, but 50MB might be too much. > > Anyway, only changing the php.ini files doesn't make sense in my > opinion, since they're probably only used on Windows, and they should > reflect the actual default values[1]. > > It's true that those particular ini files are not directly used on Linux but distros often base their changes on them and the distro provided ones are actually used. So it means that main defaults in main.c are most likely not used. Although I agree they should be changed too so it is consistent. Regards Jakub --0000000000008f135605e827fe47--