Login  |  Packages  |  Support  |  Bugs
Top Level :: Structures :: weakreference_bc :: 0.4.0

weakreference_bc 0.4.0

Package Information
Summary Polyfill of WeakMap/WeakReference for older PHP versions. This is a fork of the abandoned "weakref" PECL.
Maintainers Tyson Andre (lead) [details]
License PHP
Description A weak reference provides a gateway to an object without preventing that object from being collected by the garbage collector (GC).
Homepage https://github.com/tysonandre/pecl-weakreference_bc
Release notes
Version 0.4.0
(beta)
- Fork this from the abandoned "weakref" PECL to provide WeakMap for php 7.0-7.4 and WeakReference for php 7.0-7.3
- Fix compilation errors for WeakMap in php 7.4
- Rename WeakRef to WeakReference to act as a polyfill for WeakReference in php before php 7.4.
- Make WeakReference constructor throw and require the use of WeakReference::create, like php 7.4
- Fix edge cases when destructor of an old value modifies the weakmap during an update.
- Strictly prevent the creation of dynamic properties on a WeakReference.

[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ]

Dependencies for release 0.4.0
PHP Version: PHP version 8.0.0 or older
PHP Version: PHP 7.0.3 or newer
PEAR Package: PEAR 1.4.0b1 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Jun 01 07:05:01 2020 UTC
Bandwidth and hardware provided by: pair Networks