Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte

2022-09-10 Thread Yasuo Ohgaki
2022年9月7日(水) 22:58 Misha : > Hello everyone, > > 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

Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte

2022-09-10 Thread Pierre
Le 10/09/2022 à 11:31, Yasuo Ohgaki a écrit : 2022年9月7日(水) 22:58 Misha : I can understand the motivation, but I am against the change. To increase uploaded file max size, POST max size must be increased too. For 99.99% entry points do not need 50MB POST max size. and larger POST max size increas

Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling

2022-09-10 Thread Paul Dragoonis
On Thu, 8 Sep 2022, 17:18 Tim Düsterhus, wrote: > Hi > > On 9/7/22 23:44, Larry Garfield wrote: > > Either I guess? Honestly we should decide that in advance on the list. > :-) E_WARNING+Exception in 9 is what I'd probably favor, with "Exception > now" as a second choice. > > > > I'm a new-ish

Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling

2022-09-10 Thread Tim Düsterhus
Hi On 9/10/22 13:03, Paul Dragoonis wrote: Do give it more thought regarding the callbacks what Nikolas said, sleep on it. Are you referring to 'unserialize_callback_func' or to the unserialize handlers (i.e. __wakeup, __unserialize, Serializable::unserialize)? If the former, I am currently

[PHP-DEV] str_repeat performance

2022-09-10 Thread Eugene Sidelnyk
Hello internals! I have noted some strange points about `str_repeat` performance. It looks like the lesser `$times` argument is, the bigger is execution time (only if we consider big numbers). For example, `str_repeat('%d ', 12500);` is a lot slower than `str_repeat('%d ', 125)`. First case

[PHP-DEV] Re: str_repeat performance

2022-09-10 Thread Christoph M. Becker
On 10.09.2022 at 14:19, Eugene Sidelnyk wrote: > I have noted some strange points about `str_repeat` performance. It looks > like the lesser `$times` argument is, the bigger is execution time (only if > we consider big numbers). > > For example, `str_repeat('%d ', 12500);` is a lot slower than > `

Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte

2022-09-10 Thread Peter Kokot
On Sat, 10 Sept 2022 at 11:32, Yasuo Ohgaki wrote: > > 2022年9月7日(水) 22:58 Misha : > > > Hello everyone, > > > > 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 >

Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte

2022-09-10 Thread juan carlos morales
I also agree that increasing the size to something bigger than 8M might not be a good idea; I can imagine that a value bigger than 8M (like 50M) will cause an impact in hosting platforms specially, which will be forced to always change the php's default values to a lower one, because of potential D

Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte

2022-09-10 Thread David Gebler
On Sat, Sep 10, 2022 at 3:05 PM juan carlos morales < dev.juan.mora...@gmail.com> wrote: > I also agree that increasing the size to something bigger than 8M > might not be a good idea; I can imagine that a value bigger than 8M > (like 50M) will cause an impact in hosting platforms specially, which

Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte

2022-09-10 Thread Yasuo Ohgaki
2022年9月10日(土) 23:23 David Gebler : > On Sat, Sep 10, 2022 at 3:05 PM juan carlos morales < > dev.juan.mora...@gmail.com> wrote: > >> I also agree that increasing the size to something bigger than 8M >> might not be a good idea; I can imagine that a value bigger than 8M >> (like 50M) will cause an

[PHP-DEV] Re: str_repeat performance

2022-09-10 Thread Eugene Sidelnyk
Oh, yes. Sorry for that. Thanks for pointing out. On Sat, Sep 10, 2022 at 3:23 PM Christoph M. Becker wrote: > On 10.09.2022 at 14:19, Eugene Sidelnyk wrote: > > > I have noted some strange points about `str_repeat` performance. It looks > > like the lesser `$times` argument is, the bigger is e

Re: [PHP-DEV] Re: str_repeat performance

2022-09-10 Thread Hans Henrik Bergan
maybe you'll find $t=microtime(true) - $startTime; var_dump($t,number_format($t,10)); interesting, https://3v4l.org/Ejia3 On Sat, 10 Sept 2022 at 17:11, Eugene Sidelnyk wrote: > Oh, yes. Sorry for that. > > Thanks for pointing out. > > On Sat, Sep 10, 2022 at 3:23 PM Christoph M. Becker > wrot

Re: [PHP-DEV] Re: Issues with readonly classes

2022-09-10 Thread Nicolas Grekas
Hello Larry, > Regarding your main question: I understand your problem with readonly > > classes, and I'd be happy if we found a solution which fits your > use-cases > > and keeps consistency for the engine at the same time. To give you more > > context about the inheritance related restriction i

Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte

2022-09-10 Thread Hamza Ahmad
> We spend a lot of time to increase limits for uploads file in PHP. For a lot of time, I assume you are using a web host that does not allow modification to INI file directly or using INI functions, and you have to contact your host provider for that change. Otherwise, it is not that difficult to