rfc:deprecate-uniqid

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
rfc:deprecate-uniqid [2017/09/22 13:28]
127.0.0.1 external edit
rfc:deprecate-uniqid [2018/05/10 14:25]
kelunik Move into discussion phase
Line 3: Line 3:
   * Date: 2017-05-24   * Date: 2017-05-24
   * Author: Niklas Keller, me@kelunik.com   * Author: Niklas Keller, me@kelunik.com
-  * Status: ​Draft+  * Status: ​Under Discussion
   * First Published at: http://​wiki.php.net/​rfc/​deprecate-uniqid   * First Published at: http://​wiki.php.net/​rfc/​deprecate-uniqid
  
Line 10: Line 10:
  
 ===== Proposal ===== ===== Proposal =====
-This RFC proposes to emit deprecation warnings for any usage of ''​uniqid()''​. Current usages should be replaced with either ​ ''​random_bytes()''​ (maybe in combination with ''​bin2hex()''​ or any other encoding of their choice) or an UUID implementation of the developer'​s choice.+This RFC proposes to emit deprecation warnings for any usage of ''​uniqid()''​. Current usages should be replaced with either ​ ''​random_bytes()''​ (in combination with ''​bin2hex()''​ or any other encoding of choice) or an UUID implementation of the developer'​s choice.
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 16: Line 16:
  
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
-Deprecation notice in PHP 7.and removal in PHP 8.0.+Deprecation notice in PHP 7.and removal in PHP 8.0.
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
-Simple yes / no vote with 50%+1 majority.+Simple yes / no vote with 2/3 majority
 + 
 +Maybe a second vote for skipping removal in PHP 8.0 and delaying it to a later RFC.
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
 TBD. TBD.
rfc/deprecate-uniqid.txt · Last modified: 2018/05/10 14:38 by kelunik