From 60dba433a0af58f1b9816f21152e3a1d610336db Mon Sep 17 00:00:00 2001 From: pp Date: Wed, 22 Dec 2004 00:54:56 +0000 Subject: - first try at making it compatible with PHP5 git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/trunk@90 455248ca-bdda-0310-9134-f4ebb693071a --- php_imlib.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'php_imlib.h') diff --git a/php_imlib.h b/php_imlib.h index e1aad2c..0d188ed 100644 --- a/php_imlib.h +++ b/php_imlib.h @@ -35,6 +35,10 @@ #if HAVE_IMLIB +#ifdef ZTS +#include "TSRM.h" +#endif + extern zend_module_entry imlib_module_entry; #define phpext_imlib_ptr &imlib_module_entry @@ -177,18 +181,16 @@ ZEND_BEGIN_MODULE_GLOBALS(imlib) char *font_path; char **saved_path; char *filter_path; - int cache_size; - int min_cache_size; - int max_cache_size; + long cache_size; + long min_cache_size; + long max_cache_size; struct php_imlib_filter *filters; ZEND_END_MODULE_GLOBALS(imlib) #ifdef ZTS -#define IMLIBG(v) (imlib_globals->v) -#define IMLIBLS_FETCH() zend_imlib_globals *imlib_globals = ts_resource(gd_imlib_id) +# define IMLIBG(v) TSRMG(imlib_globals_id, zend_imlib_globals *, v) #else -#define IMLIBG(v) (imlib_globals.v) -#define IMLIBLS_FETCH() +# define IMLIBG(v) (imlib_globals.v) #endif #else -- cgit v1.2.3