> On 30 Jul 2017, at 18:19, Andreas Treichel <gmb...@gmail.com> wrote: > > Hi, > >> So I propose to make the gc_disable function accept one zval reference as >> parameter. And if gc_disable get that zval, gc_disable just drop the zval’s >> GC_COLLECTABLE flag, which will hint the PHP gc not to trace that zval. > > i dont know if this is a good idea or not. But for the "s" in solid, create a > new function like gc_exclude to exclude variables from the garbage collector > and do not add a parameter to gc_disable.
A new function gc_hint($zval, bool $collectable) has been introduced at https://github.com/php/php-src/pull/2665/files -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php