Re: persistent zval

From: Date: Tue, 09 Dec 2014 19:45:22 +0000
Subject: Re: persistent zval
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-79514@lists.php.net to get a copy of this message
Am 09.12.2014 um 20:03 schrieb Sara Golemon:
On Tue, Dec 9, 2014 at 10:58 AM, Marc Bennewitz <dev@mabe.berlin> wrote:
Is it possible to make a zval persistent?
Nope. Why?
There is a reference counter, which should be increased on put a value into persistence and on removing a value from persistence decrease it. So the GC could handle unreferenced zvals. Example: persist_set($key, $value); persist_get($key); persist_has($key); persist_list(); // list of persistent values

« previous php.internals (#79514) next »