rfc:weakrefs

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
rfc:weakrefs [2019/02/22 11:53]
krakjoe
rfc:weakrefs [2019/03/13 09:31] (current)
krakjoe
Line 3: Line 3:
   * Date: 2018-05-17   * Date: 2018-05-17
   * Author: krakjoe   * Author: krakjoe
-  * Status: Discussion+  * Status: Implemented
   * First Published at: http://wiki.php.net/rfc/weakrefs   * First Published at: http://wiki.php.net/rfc/weakrefs
  
Line 23: Line 23:
 <code php> <code php>
 final class WeakReference { final class WeakReference {
-    public function __construct(object $object);+    public static function create(object $object) : WeakReference;
          
     public function get() : ?object;     public function get() : ?object;
Line 44: Line 44:
   * does not support serialization   * does not support serialization
   * does not support properties   * does not support properties
-  * supports cloning 
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 77: Line 76:
 Simple Yes/No, requires super majority. Simple Yes/No, requires super majority.
  
-<doodle title="Implement weakrefs ?" auth="krakjoe" voteType="single" closed="false">+<doodle title="Implement weakrefs ?" auth="krakjoe" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
rfc/weakrefs.1550836406.txt.gz · Last modified: 2019/02/22 11:53 by krakjoe