Re: [PHP-DEV] [RFC] Add clamp function

2025-08-24 Thread Morgan
On 2025-08-25 02:27, Kyle Katarn wrote: 2025-08-22 at 22:29, Morgan > wrote: On 2025-08-23 05:29, Kyle Katarn wrote: > > Also from my point of view,  min($max, max($min, $value)) has a counter- > intuitive reading when used to clamp a value.

Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.5

2025-08-24 Thread Jakub Zelenka
Hi, On Sun, Aug 24, 2025 at 12:58 PM Gina P. Banyard wrote: > I don't mind splitting the PR into 2 different ones, one for __sleep() > and the other one for __wakeup(), but once again people are complaining > that a 2/3 threshold is seemingly not enough when it is not necessarily an > easy thres

Re: [PHP-DEV] [RFC] [Discussion] Recommend PIE and deprecate PECL

2025-08-24 Thread Ben Ramsey
On Sat, Aug 23, 2025 at 02:43 James Titcumb wrote: > Folks, > > Presenting the RFC for deprecating PECL and adopting PIE as the > recommended extension installer for PHP: > > https://wiki.php.net/rfc/adopt_pie_deprecate_pecl > > Plan to move to vote on or shortly after 6th September. > > Thanks >

Re: [PHP-DEV] [RFC] Add clamp function

2025-08-24 Thread Kyle Katarn
2025-08-23 at 12:06, Rob Landers wrote: > > On Fri, Aug 22, 2025, at 22:09, Larry Garfield wrote: > > On Fri, Aug 22, 2025, at 12:45 PM, Kyle Katarn wrote: > > > About "What determines comparability", it follows the usual rules of > > PHP: https://www.php.net/manual/en/language.operators.comparis

Re: [PHP-DEV] [RFC] Add clamp function

2025-08-24 Thread Kyle Katarn
2025-08-22 at 22:29, Morgan wrote: > On 2025-08-23 05:29, Kyle Katarn wrote: > > > > Also from my point of view, min($max, max($min, $value)) has a counter- > > intuitive reading when used to clamp a value. > > Well, that's trivial to deal with: > > min(max($min, $value), $max)); > It's not jus

Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.5

2025-08-24 Thread Gina P. Banyard
On Wednesday, 13 August 2025 at 12:47, Kamil Tekiela wrote: > On Wed 13 Aug 2025, 13:44 Christoph M. Becker, wrote: > >> On 13.08.2025 at 11:00, Nicolas Grekas wrote: >> >>> Le ven. 8 août 2025 à 22:10, Gina P. Banyard a écrit : >>> The following proposals have been accepted: -