Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118590 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15415 invoked from network); 9 Sep 2022 21:38:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Sep 2022 21:38:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1EB971804B1 for ; Fri, 9 Sep 2022 14:38:50 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 ; Fri, 9 Sep 2022 14:38:49 -0700 (PDT) Received: by mail-ed1-f51.google.com with SMTP id z8so4436139edb.6 for ; Fri, 09 Sep 2022 14:38:49 -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=tSaIeyFj5J+LrT0Kq/HTYLNuttVwqTwZKLx5+ZxF+4Q=; b=T2FJc9mGwvRlEWtDBPWMJAXfl8kAEN2EWPwBGWijBicNoaPbHkcto/0IeYYTCy/NQb PBHRI7CJY/8f/TAGSmzHTrtlsJPBQPAtY9/iG6PngdAV9qnK8GwQfvOP7Sw1S9Ek4PhV TehrCDsMFjeEzXS4FiMLuDKtXGZEYTT6NePpRT+W3iqVjcASl24wqEL5wo+ogSJzi02o Eqq+VcE06L469plR4kh4ALGiZWPRHbNUVkv62ZK3Uh9QdoUj7qfJg8ClDxaGBqgs3uPi yyHEcy81Chk2/lEB/K2bEHcQ3U0q3tgF2Dn3XAUAz69mmDH7ZVvy4TcwJEQijHRFGIB6 w0oA== 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=tSaIeyFj5J+LrT0Kq/HTYLNuttVwqTwZKLx5+ZxF+4Q=; b=op60ehkpemAPHvJrDKxvuUM3Vdyj3h7L9Mi+qlfq5suYKnp/9CjlyUhLxXcTTlmZqy Dizob6wnSR9MhcpzEyS36AE02WShibzz1PF/FYKlwl6M+u1h7vpqfrSAPyhQEThSGqtf r3qEZi/nN/Eq7NnWltHUpt+POHYTft61zPC3Ad10JM/VhAElZZgiKcO1tHEggc93Z6Kz d2XeVxGf2PJ0weKoy37XibXjVb4sKNeKdyIIqkJauPS4+ZAB1Ip/g3VjRdEY/nyNJhi5 Hbg93FYzOYMHlzb6OLFDBYDK8HMKJMaf04/H0coLWtWWigzBY2SLIJiOshVXpezu95SV FP6A== X-Gm-Message-State: ACgBeo2rr/8W+eHzbYKItAKe4r4R+Zh75M6+xMypZDT231Az5E+Cwye5 XLuk+lSod330ZpbwTK9OsLqkLUt6K1NajktPngXQVcaz X-Google-Smtp-Source: AA6agR5XoNq3AUyDwMvQ7hzDtxe4B2r9IrQhXj3GItERuyhJMEUh5/t8EZau0elNgJ2ihMHYcX7fPeRS8TKT+MiKMT0= X-Received: by 2002:a05:6402:354b:b0:451:141e:209b with SMTP id f11-20020a056402354b00b00451141e209bmr3519929edd.7.1662759528276; Fri, 09 Sep 2022 14:38:48 -0700 (PDT) MIME-Version: 1.0 References: <60350e90-3f2a-df6b-fd56-ab6613a610eb@gmx.de> <29478c19-db71-55b5-d57d-aad2bfbd1fb0@gmx.de> In-Reply-To: <29478c19-db71-55b5-d57d-aad2bfbd1fb0@gmx.de> Date: Fri, 9 Sep 2022 22:38:39 +0100 Message-ID: To: "Christoph M. Becker" Cc: Andreas Heigl , PHP Internals List Content-Type: multipart/alternative; boundary="00000000000007a74505e8455f6e" Subject: Re: [PHP-DEV] Re: Increase maximum size of an uploaded file to 50Mbyte From: dragoonis@gmail.com (Paul Dragoonis) --00000000000007a74505e8455f6e Content-Type: text/plain; charset="UTF-8" On Thu, 8 Sep 2022, 12:59 Christoph M. Becker, wrote: > On 08.09.2022 at 13:01, Andreas Heigl wrote: > > > On 08.09.22 12:35, Jakub Zelenka wrote: > > > >> 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. > > > > No matter which value we preset, it will most certainly not be adequate. > > > > So people *will* have to set it according to their needs. And if they > > didn't so far, then they are happy with the current setting. > > > > Don't get me wrong: I'm not against changing that value. > > > > But is it really an issue that needs solving? It's a default value of a > > configuration file. When I'm unhappy with the default, I change it to a > > more suitable value. When I'm not able to do that... perhaps I should > > leave my fingers not only from the config file... > > It might be worth to point out that we're using these defaults since PHP > 4.0 (at least), so reconsidering sensible defaults might be appropriate. > I can sense we are all feeling like upping the value here. If we take it slow and move from 2MB to 8MB that would ease into it, and see how it goes in our next release ? Do we RFC this? Who is volunteering to make it, if so? :-) > -- > Christoph M. Becker > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --00000000000007a74505e8455f6e--