pinepain / php-object-maps

Weak-referenced data structures for PHP
MIT License
5 stars 2 forks source link

Remove php-ref depencency #7

Closed pinepain closed 6 years ago

pinepain commented 6 years ago

As php-ref won't be maintained anymore (take is as fact, unless you want to do it yourself for PHP 7.3 or you want put your money on it), let's remove php-ref and use probability checker on each access (get/set or so) attempt to walk across the stored items and remove those with refcount = 1.

refcounting function may be added to php-v8 ext as the main use case is for js-sandbox library when we map PHP to JS structs and vice versa.

pinepain commented 6 years ago

Closing as taking lib into js-sandbox