rfc:hash-context.as-resource

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:hash-context.as-resource [2017/01/17 23:44] – Clarify what "reentrant" mode does pollitarfc:hash-context.as-resource [2017/02/01 00:59] – Voting closed pollita
Line 3: Line 3:
   * Date: 2016-12-26   * Date: 2016-12-26
   * Author: Sara Golemon <pollita@php.net>, with initial implementation from Rouven Weßling <me@rouvenwessling.de>   * Author: Sara Golemon <pollita@php.net>, with initial implementation from Rouven Weßling <me@rouvenwessling.de>
-  * Status: Voting+  * Status: Accepted
   * First Published at: http://wiki.php.net/rfc/hash-context.as-resource   * First Published at: http://wiki.php.net/rfc/hash-context.as-resource
  
Line 10: Line 10:
  
 ===== Proposal ===== ===== Proposal =====
-Convert the opaque resource to an opaque object.  This is the lightest touch change to ensure that existing code should continue to function unless it has explciit is_resource() checks.  These checks can be easily replaced with is_resource|is_object checks instead.+Convert the opaque resource to an opaque object.  This is the lightest touch change to ensure that existing code should continue to function unless it has explicit is_resource() checks.  These checks can be easily replaced with is_resource|is_object checks instead.
  
 ===== Future Scope ===== ===== Future Scope =====
Line 33: Line 33:
 This primary vote is to determine, overall, if the "hash context" resource used by hash_init/hash_update/hash_final should be changed to an object. This primary vote is to determine, overall, if the "hash context" resource used by hash_init/hash_update/hash_final should be changed to an object.
  
-<doodle title="Change HashContext to an object" auth="sgolemon" voteType="single" closed="false">+<doodle title="Change HashContext to an object" auth="sgolemon" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 43: Line 43:
   * "Reentrant": Apply both diffs in [[https://github.com/php/php-src/pull/2309|PR#2309]] which will allow contexts to continue functioning after calling hash_final() by effectively performing: $saved = hash_copy($ctx); $ret = hash_final($ctx); $ctx = $saved;   * "Reentrant": Apply both diffs in [[https://github.com/php/php-src/pull/2309|PR#2309]] which will allow contexts to continue functioning after calling hash_final() by effectively performing: $saved = hash_copy($ctx); $ret = hash_final($ctx); $ctx = $saved;
  
-<doodle title="Merge one or both diffs" auth="sgolemon" voteType="single" closed="false">+<doodle title="Merge one or both diffs" auth="sgolemon" voteType="single" closed="true">
    * Frozen    * Frozen
    * Reentrant    * Reentrant
rfc/hash-context.as-resource.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1