PHP 8.4 / Status of "Saner Increment/Decrement operator" part 2 ?

php.internals

Unnamed Person

1 year ago
L.s., I was just looking at the "Path to Saner Increment/Decrement operators" RFC [1] and as part of the proposal, step 2 "Deprecate using the increment operator with non-numeric strings." should have gone into PHP 8.4, but I can't find anything about this deprecation having been added in PHP 8.4 in the UPGRADING docs. Anyone around who can tell me what the status is ? Smile, Juliette 1: https://wiki.php.net/rfc/saner-inc-dec-operators

Alexandru Pătrănescu

1 year ago
On Tue, Sep 17, 2024 at 9:11 PM Juliette Reinders Folmer < php-internals_nospam@adviesenzo.nl> wrote:
> L.s., > > I was just looking at the "Path to Saner Increment/Decrement operators" > RFC [1] and as part of the proposal, step 2 "Deprecate using the > increment operator with non-numeric strings." should have gone into PHP > 8.4, but I can't find anything about this deprecation having been added in > PHP 8.4 in the UPGRADING docs. > >
That was in PHP 8.3: https://github.com/php/php-src/blob/PHP-8.3/UPGRADING#L177
-- Alex

Christoph Becker

1 year ago
On 17.09.2024 at 20:04, Juliette Reinders Folmer wrote:
> I was just looking at the "Path to Saner Increment/Decrement operators" > RFC [1] and as part of the proposal, step 2 "Deprecate using the > increment operator with non-numeric strings." should have gone into PHP > 8.4, but I can't find anything about this deprecation having been added > in PHP 8.4 in the UPGRADING docs. > > Anyone around who can tell me what the status is ?
See <https://wiki.php.net/rfc#pending_implementationlanding>; the RFC is still listed there for PHP 8.X and PHP 9.0. The 8.X part has not (yet) been done. In my opinion, this can be postponed to PHP 8.5, but if PHP 9.0 is next, that would not work, since we cannot deprecate and remove in the same version. Christoph

Gina P. Banyard

1 year ago
On Tuesday, 17 September 2024 at 19:04, Juliette Reinders Folmer <php-internals_nospam@adviesenzo.nl> wrote: > L.s., > > I was just looking at the "Path to Saner Increment/Decrement operators" RFC [1] and as part of the proposal, step 2 "Deprecate using the increment operator with non-numeric strings." should have gone into PHP 8.4, but I can't find anything about this deprecation having been added in PHP 8.4 in the UPGRADING docs. > > Anyone around who can tell me what the status is ? > > Smile, > Juliette > > 1: https://wiki.php.net/rfc/saner-inc-dec-operators As Christoph has already said, the RFC indicated PHP 8.X where X is greater than 3. So no it did not need to land in 8.4. Considering that I personally find it unlikely that the next version is going to be 9.0 (now I may be wrong but we don't really have any strong indications for doing this bump) and people were already uncomfortable at the timeline I proposed when the RFC got voted; I found it better to let another deprecation free version for people to move to str_increment(). I did not forget about this and had it on the planned list of things to tackle for PHP 8.5. Best regards, Gina P. Banyard

Unnamed Person

1 year ago
On 20-9-2024 13:59, Gina P. Banyard wrote:
> On Tuesday, 17 September 2024 at 19:04, Juliette Reinders Folmer > <php-internals_nospam@adviesenzo.nl> wrote: >> L.s., >> >> I was just looking at the "Path to Saner Increment/Decrement >> operators" RFC [1] and as part of the proposal, step 2 "Deprecate >> using the increment operator with non-numeric strings." should have >> gone into PHP 8.4, but I can't find anything about this deprecation >> having been added in PHP 8.4 in the UPGRADING docs. >> >> Anyone around who can tell me what the status is ? >> >> Smile, >> Juliette >> >> >> 1: https://wiki.php.net/rfc/saner-inc-dec-operators > > As Christoph has already said, the RFC indicated PHP 8.X where X is > greater than 3. > So no it did not need to land in 8.4. > > Considering that I personally find it unlikely that the next version > is going to be 9.0 (now I may be wrong but we don't really have any > strong indications for doing this bump) and people were already > uncomfortable at the timeline I proposed when the RFC got voted; > I found it better to let another deprecation free version for people > to move to str_increment(). > > I did not forget about this and had it on the planned list of things > to tackle for PHP 8.5. >
Thanks for clarifying and confirming Gina. Makes sense to me. Just wanted to be sure. Smile, Juliette