Re: [PHP-DEV] Closure::getCurrent() for recursion

2025-04-14 Thread Krinkle
On Mon, 31 Mar 2025, Jorg Sowa wrote: > I thought about edge cases and what the desired output is with nested > closures? > > Example: > $a = function (int $numberA) { > $b = function (int $numberB) { > if($numberB < 10) { > return Closure::current(10); > } >

[PHP-DEV] New max_memory_limit INI setting

2025-04-14 Thread Ilija Tovilo
Hi everyone We've received a PR from Frederik Pytlick (@frederikpyt, thank you!) that introduces a new max_memory_limit INI setting. https://github.com/php/php-src/pull/18011 This setting declares an upper bound for memory_limit, which will prevent memory_limit from being set to a value higher t

Re: [PHP-DEV] [RFC] [Discussion] Minor version compatibility

2025-04-14 Thread Jakub Zelenka
Hi, On Sun, Apr 13, 2025 at 11:09 PM Jorg Sowa wrote: > Thank you all for the feedback on the topic of BC breaks in argument > validation https://news-web.php.net/php.internals/126706 > > I have collected all concerns, prepared an RFC for this change, and I'm > opening discussion on its content: