rfc:remove_utf8_decode_and_utf8_encode

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:remove_utf8_decode_and_utf8_encode [2022/04/04 17:46] – remove custom message imsoprfc:remove_utf8_decode_and_utf8_encode [2022/06/21 09:42] (current) – The RFC has been implemented cmb
Line 3: Line 3:
   * Date: 2022-04-04   * Date: 2022-04-04
   * Author: Rowan Tommins <rowan.collins@gmail.com>   * Author: Rowan Tommins <rowan.collins@gmail.com>
-  * Status: Under Discussion+  * Status: [[https://github.com/php/php-src/pull/8726|Implemented]] (PHP 8.2.0) 
   * First Published at: https://wiki.php.net/rfc/remove_utf8_decode_and_utf8_encode   * First Published at: https://wiki.php.net/rfc/remove_utf8_decode_and_utf8_encode
  
Line 193: Line 193:
  
 The use of these functions internally within the ext/xml extension has not been examined, and will not be changed. The use of these functions internally within the ext/xml extension has not been examined, and will not be changed.
- 
-===== Open Issues ===== 
- 
-  * Exact wording of deprecation notice. 
-  * What alternatives should the manual actively promote? 
- 
-===== Proposed Voting Choices ===== 
- 
-Should utf8_encode and utf8_decode be deprecated in 8.2 and removed in 9.0? (Yes / No) 
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
Line 236: Line 227:
 However, this would require either implementing a significant amount of extra code, or wrapping one of the existing functions, all of which are in optional extensions. It would also require several versions before the benefit could be realised: first, add the parameter; in a later version, raise a deprecation if the new parameter is not passed; finally, make the parameter mandatory. Users would then still need to check and update every use of the functions, which would be a similar effort to switching to a new function. However, this would require either implementing a significant amount of extra code, or wrapping one of the existing functions, all of which are in optional extensions. It would also require several versions before the benefit could be realised: first, add the parameter; in a later version, raise a deprecation if the new parameter is not passed; finally, make the parameter mandatory. Users would then still need to check and update every use of the functions, which would be a similar effort to switching to a new function.
  
-==== Changelog ====+===== Vote ===== 
 + 
 +<doodle title="Should utf8_encode and utf8_decode be deprecated in 8.2 and removed in 9.0?" auth="imsop" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle> 
 + 
 +Voting started 2022-04-05 18:40 UTC, and will run for two weeks, closing 2022-04-19 18:40 UTC 
 + 
 +===== Changelog =====
  
   * v1.0 (2022-02-20) Initial version sent for discussion   * v1.0 (2022-02-20) Initial version sent for discussion
   * v1.1 (2022-03-04) Made a stronger recommendation of mb_convert_encoding as a replacement (see "Alternatives to Removed Functionality")   * v1.1 (2022-03-04) Made a stronger recommendation of mb_convert_encoding as a replacement (see "Alternatives to Removed Functionality")
   * v1.2 (2022-04-04) Dropped proposed custom wording for deprecation message. The nuances can be better expressed in the manual.   * v1.2 (2022-04-04) Dropped proposed custom wording for deprecation message. The nuances can be better expressed in the manual.
rfc/remove_utf8_decode_and_utf8_encode.1649094409.txt.gz · Last modified: 2022/04/04 17:46 by imsop