rfc:saner-inc-dec-operators

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:saner-inc-dec-operators [2023/06/28 16:06] – Open voting girgiasrfc:saner-inc-dec-operators [2023/07/17 14:52] (current) – Implemented girgias
Line 4: Line 4:
   * Date: 2022-11-21   * Date: 2022-11-21
   * Author: George Peter Banyard, <girgias@php.net>   * Author: George Peter Banyard, <girgias@php.net>
-  * Status: In Voting+  * Status: Implemented
   * Target Version: PHP 8.3, PHP 8.(3+x), and PHP 9.0   * Target Version: PHP 8.3, PHP 8.(3+x), and PHP 9.0
-  * Implementation: [[https://github.com/php/php-src/pull/10358]]+  * Implementation: [[https://github.com/php/php-src/commit/d8696f92166eea5e94cc82b64bce72f36fc81d46]]
   * First Published at: [[http://wiki.php.net/rfc/saner-inc-dec-operators]]   * First Published at: [[http://wiki.php.net/rfc/saner-inc-dec-operators]]
  
Line 68: Line 68:
 </PHP> </PHP>
  
-The only examples of an internal class that does not implements a ''do_operation'' handler but implements an ''_IS_NUMBER'' cast in php-src are in Tidy extension (and are of dubious nature):+The only examples of an internal class that does not implement a ''do_operation'' handler but implements an ''_IS_NUMBER'' cast in php-src are in Tidy extension (and are of dubious nature):
 <PHP> <PHP>
 $o = tidy_parse_string("<p>Hello world</p>"); $o = tidy_parse_string("<p>Hello world</p>");
Line 525: Line 525:
  
 Therefore, we consider the value of reducing the semantic complexity of PHP higher than keeping support for this feature in its current form. Therefore, we consider the value of reducing the semantic complexity of PHP higher than keeping support for this feature in its current form.
-The introduction of the <php>str_increment()</php> functions provides a migration paths for users relying on this feature that can easily be polyfilled in prior versions of PHP:+The introduction of the <php>str_increment()</php> function provides a migration path for users relying on this feature that can easily be polyfilled in prior versions of PHP:
 <PHP> <PHP>
 function str_increment_polyfill(string $s): string { function str_increment_polyfill(string $s): string {
Line 557: Line 557:
  
   * Generating a list of valid unicode (or ASCII) characters. The most popular project using this is HTMLPurifier, which no longer does so as of [[https://github.com/ezyang/htmlpurifier/pull/367|this PR]].   * Generating a list of valid unicode (or ASCII) characters. The most popular project using this is HTMLPurifier, which no longer does so as of [[https://github.com/ezyang/htmlpurifier/pull/367|this PR]].
-  * Generating sequential IDs. The main library doing this is amphp/amp, however a lot of other project depend on this library.+  * Generating sequential IDs. The main library doing this is amphp/amp, however a lot of other projects depend on this library.
   * Incrementing a spreadsheet column.   * Incrementing a spreadsheet column.
  
Line 586: Line 586:
  
 Voting started on 2023-06-28 and will end on 2023-07-12. Voting started on 2023-06-28 and will end on 2023-07-12.
-<doodle title="Accept Path to Saner Increment/Decrement operators RFC?" auth="girgias" voteType="single" closed="false">+<doodle title="Accept Path to Saner Increment/Decrement operators RFC?" auth="girgias" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 597: Line 597:
 After the project is implemented, this section should contain After the project is implemented, this section should contain
  
-  * the version(s) it was merged into +  * Version: PHP 8.3 
-  * a link to the git commit(s)+  * Implementation :https://github.com/php/php-src/commit/d8696f92166eea5e94cc82b64bce72f36fc81d46
   * a link to the PHP manual entry for the feature   * a link to the PHP manual entry for the feature
  
 ===== References ===== ===== References =====
  
rfc/saner-inc-dec-operators.1687968374.txt.gz · Last modified: 2023/06/28 16:06 by girgias