Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118585 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3774 invoked from network); 8 Sep 2022 11:59:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Sep 2022 11:59:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5F7FB180384 for ; Thu, 8 Sep 2022 04:59:15 -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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,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: AS8560 212.227.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (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 04:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1662638353; bh=StL+Bj8kZJ0J535QZ7KuTlop6l69BMRJcCwANkQmLF0=; h=X-UI-Sender-Class:Date:Subject:To:References:From:In-Reply-To; b=gv7AHhk69qfzMWfq885kMWp7+CCHu/KMfbxO8+NVsCJ8u9fPCgmF/Uk+OgOBbaTzS DMyjOkryHFbYfxgs2R1M30+OJyxNXXPYZcRrxyYs4ZZ/4rhT536OYBQoiAkiFC0XIR PWeag9xjNm1BlLBbmqIDJ2zWJaPFvFwm8TALneoo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.130] ([79.220.93.232]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MNKhm-1ohiWp0beM-00OsLK; Thu, 08 Sep 2022 13:59:13 +0200 Message-ID: <29478c19-db71-55b5-d57d-aad2bfbd1fb0@gmx.de> Date: Thu, 8 Sep 2022 13:59:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 To: Andreas Heigl , internals@lists.php.net References: <60350e90-3f2a-df6b-fd56-ab6613a610eb@gmx.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:fBC8CI9jMATKS7cxBkiYYKAQNDW0QN6rMTKLr8yV5WsLah9eVSq 2gg/TRsaXnCFNlZb5RZmtsU3G/NAx0VpTZu4UjChWqmB+Rk3btdsceOcDsX22GUBarQ9RtG Jo8cFb1TkQ7Zoa3vQSfT5uk32/o4SGIDrUMTc9HJ5IqY2WUFbyf+gCbyhIL17srbETXv2yz dVUkZLpdnGjtdreZG/rrA== X-UI-Out-Filterresults: notjunk:1;V03:K0:mrJ6Xh+xgAI=:x71Eo3pbLViibeaoQE6Utn eT7eGclXAaAKmn6y2pLXStxfSAsYYvz0ZGc4GOYAVUNRkVojXgMEBvA87ce3FYD+YIyMOB60U Elb/W6tIjVNup2q3wN7L4x3ZDCmYwOTQAbWZLtkIKZdvGp+djBiZhGm8J2md3IDVZ67Z7pZkg avR+9wI6tiqJXzTyWTPfprVB+c1muW88dj0sfr15hLlClGLMMi+fCeMQh+60gBcn3LNwqeEjQ Ve+8h1rmOHV2AwYxELG7RSGgqezdbusg+4/a50iZQ28uUcooD5V8j3n7GphxJpoEpV4nS57Fk 9kQgQdY36RG4T6o2XTc4hXTR7P9r5mJBho7bQ4yv+G9oxxSEhWjLIOqXaGyRpNYn7qmkWdwYy m5A0fpnPENJJz18sIq9Es/xm3rEfTioHiIcX+5duV3977tECNIsrTqt/Zr+K8shyNvQGy7f1C GFlxldPBp8tVfOSEJddumQob3oq/U1Qy4gAGscasAv/pCvbiz/7Y+7iYTZfWLS9VMpvzFDdJK 6re9bGqX1g7KEFQWiGNSZVLOsM7Y9y67kTCbqIh5vFx4E7l63yNkcA/Y+TXRbaZiNXl8rwfvv zHE1eZ2bSIrOt6m0LS4txIoLfREc8pYC6t+yCV/nrGsjT1Urr5jjD9j7b0Hq8y76Jn3iwsmCp WfYRtJYbMyVm+mOy7hRT+wE+nh/uVAZpLMUCvoKPlNSfW73iHXK7SY4wk7rM4AtSTkVk9v6h0 TkzNdZiPWGnO7zhtLghJELaH3bYRimlPurDnU2P0z3A6WITeDXAPeFhkdeA9Tn6RjaUmjHA5M Z4ZqpXAjgfy5AhIpLtcEiRQw3lqzG+GsrtaigrgX0ERBMmJ66l1j1S6zNoMjSU2bnJCPA0BO0 RrtqNIvaQmK2tnxxNvoDV/qPTuYD+YVFZyz4bVqcGiiKDBmuNy9I7GdP3IYzc4BQwgqCt6a3f rrq/Ze1tJ4i3xOOZ9HtYZlIp3EjCpujikc1BtbedrwyoRbxXZ/hBM+v1LuTIKvOJuYOBQNFZu 4HQJRYE8Bt1Up8RTh+4cZQQC5KVmAJPbaWedTd7F6iCouvCWBkw/xZaGDvC9lFAWj2sqV9MLO wlL0Y2ObuGEtA5PyCmPPfgKRwBa8ZT7hAMwDV557cgwdIN2CwBjmqzm94EkPDaq3XEVB3ByMA GBf3Lb/5YpcKLctvgzxQhTIV5edfc8Q7iIf/Le4++bj9UL2FYvGemBrFsle2SoIuFbmxc+Pbd neqVfbr2nYEuZc/Dz6E+Ej75toxw2cO3a770gAA== Subject: Re: [PHP-DEV] Re: Increase maximum size of an uploaded file to 50Mbyte From: cmbecker69@gmx.de ("Christoph M. Becker") 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 8= Mb >>> on >>>> iPhone X. >>>> We should increase it to 50Mb, because DevOps engineers do useless wo= rk >>>> 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]. >> >> =C2=A0 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 on= es >> 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. =2D- Christoph M. Becker