Recommended way to create a zval that serves as a callback in an extension

From: Date: Sat, 14 Jul 2012 21:00:35 +0000
Subject: Recommended way to create a zval that serves as a callback in an extension
Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi,

I'm calling the function php_pcre_replace() in my extension:
http://lxr.php.net/xref/PHP_5_4/ext/pcre/php_pcre.c#952

I would like to use a callback for the replace_val, but this will be
supplied by my extension. I'm wondering what the recommended way of
creating the replace_val zval callback would be in the extension.

Thank you for your patience and help.

Adam


Thread (3 messages)

« previous php.internals (#61234) next »