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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php