Re: Don't add simple objects to GC's roots

From: Date: Sun, 30 Jul 2017 10:19:17 +0000
Subject: Re: Don't add simple objects to GC's roots
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-100120@lists.php.net to get a copy of this message
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.

« previous php.internals (#100120) next »