Hi,
> On 26 Jul 2017, at 22:57, Nicolas Grekas <nicolas.gre...@gmail.com> wrote:
> 
> There is a way to work around: just call gc_disable(). But this means
> dealing with side effects of the engine in userland. Moreover, this also
> means leaking memory, since meanwhile roots are not populated.

Maybe we could make gc_disable accept one reference zval as parameter, and
clear the GC_COLLECTABLE flag of zval.value->gc.u.v.flags. So, this zval 
will never be put into gc root list.



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to