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.
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.