rfc:deprecate_mcrypt_rand

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
Last revisionBoth sides next revision
rfc:deprecate_mcrypt_rand [2014/11/04 19:12] sarciszewskirfc:deprecate_mcrypt_rand [2016/07/16 00:59] – this RFC has been obsoleted cmb
Line 1: Line 1:
-====== PHP RFC: Remove MCRYPT_RAND ====== +====== PHP RFC: Remove MCRYPT_RAND (Formerly: Deprecate MCRYPT_RAND) ====== 
-  * Version: 0.1+  * Version: 0.2
   * Date: 2014-07-08   * Date: 2014-07-08
   * Author: Scott Arciszewski, scott@arciszewski.me   * Author: Scott Arciszewski, scott@arciszewski.me
-  * Status: Draft+  * Status: Obsoleted by [[rfc/mcrypt-viking-funeral]]
   * First Published at: http://wiki.php.net/rfc/deprecate_mcrypt_rand   * First Published at: http://wiki.php.net/rfc/deprecate_mcrypt_rand
  
Line 13: Line 13:
 The following changes should be made: The following changes should be made:
   * MCRYPT_RAND should be removed as of PHP 7.0.   * MCRYPT_RAND should be removed as of PHP 7.0.
-  * With MCRYPT_RAND gone, mcrypt_create_iv() should transparently fall back to the default (currently MCRYPT_DEV_RANDOM)+  * With MCRYPT_RAND gone, mcrypt_create_iv() should transparently fall back to the default (currently MCRYPT_DEV_URANDOM)
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
-Legacy code that uses MCRYPT_RAND explicitly will throw a deprecation notice. Down the roadthe constant will be undefined.+The MCRYPT_RAND constant will be removedand support for it will also be removed.
  
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
Line 30: Line 30:
  
 ===== References ===== ===== References =====
-https://github.com/php/php-src/pull/889 - Patch by sarciszewski +  * https://github.com/php/php-src/pull/889 - Patch by sarciszewski 
-https://github.com/php/php-src/pull/579 - Original patch by yohgaki + discussion+  https://github.com/php/php-src/pull/579 - Original patch by yohgaki + discussion
rfc/deprecate_mcrypt_rand.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1