X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-raphf;a=blobdiff_plain;f=php_raphf.h;h=916f540cc68919cc5f682bb29277cb6fb251387a;hp=6da1b0f712a2b55172647cce0dff9eaba75f3611;hb=270daf8e9486880a685a7a1837e6b847a288da4e;hpb=f706105e1df56286cfeff86c5264270a758fa8f9 diff --git a/php_raphf.h b/php_raphf.h index 6da1b0f..916f540 100644 --- a/php_raphf.h +++ b/php_raphf.h @@ -16,7 +16,7 @@ extern zend_module_entry raphf_module_entry; #define phpext_raphf_ptr &raphf_module_entry -#define PHP_RAPHF_VERSION "0.1.0" +#define PHP_RAPHF_VERSION "1.0.2" #ifdef PHP_WIN32 # define PHP_RAPHF_API __declspec(dllexport) @@ -106,7 +106,10 @@ PHP_RAPHF_API int /* SUCCESS|FAILURE */ php_persistent_handle_provide( const char *name_str, size_t name_len, php_resource_factory_ops_t *fops, void *data, void (*dtor)(void *) TSRMLS_DC); PHP_RAPHF_API php_persistent_handle_factory_t *php_persistent_handle_concede( - php_persistent_handle_factory_t *a, const char *name_str, size_t name_len, const char *ident_str, size_t ident_len,php_persistent_handle_wakeup_t wakeup, php_persistent_handle_retire_t retire TSRMLS_DC); + php_persistent_handle_factory_t *a, const char *name_str, + size_t name_len, const char *ident_str, size_t ident_len, + php_persistent_handle_wakeup_t wakeup, + php_persistent_handle_retire_t retire TSRMLS_DC); PHP_RAPHF_API void php_persistent_handle_abandon( php_persistent_handle_factory_t *a); PHP_RAPHF_API void *php_persistent_handle_acquire( @@ -128,7 +131,7 @@ ZEND_BEGIN_MODULE_GLOBALS(raphf) ZEND_END_MODULE_GLOBALS(raphf) #ifdef ZTS -# define PHP_RAPHF_G ((zend_raphf_globals *) +# define PHP_RAPHF_G ((zend_raphf_globals *) \ (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(raphf_globals_id)]) #else # define PHP_RAPHF_G (&raphf_globals)