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

From: Date: Tue, 07 Apr 2015 13:43:42 +0000
Subject: [PATCH] Tick functions (on C level) with state
Groups: php.internals 
Request: Send a blank email to internals+get-85739@lists.php.net to get a copy of this message
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 (#85739) next »