Re: [PATCH] Tick functions (on C level) with state

From: Date: Tue, 07 Apr 2015 14:33:57 +0000
Subject: Re: [PATCH] Tick functions (on C level) with state
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-85740@lists.php.net to get a copy of this message
Hi Andrey, I didn't get why do you need this extension and how it's going to be used. Thanks. Dmitry. On Tue, Apr 7, 2015 at 4:43 PM, Andrey Hristov <php@hristov.com> wrote: > Hi, > I would like to hear comments about a small change to the low-level tick > functionality (main/php_ticks.c) to add state to when calling a C tick > function > The patch is alive at : http://pastebin.com/0zhVNxaY > > Currently a C tick function gets as a parameter just the number of ticks, > and can't preserve state between calls. On PHP level one can use closures > to mitigate this, but in the C world we don't have this luxury. > > Any comments are very welcome. If possible to get in PHP7. > > > Cheers, > Andrey >

« previous php.internals (#85740) next »