diff options
| author | pp <pp@455248ca-bdda-0310-9134-f4ebb693071a> | 2004-12-22 00:54:56 +0000 |
|---|---|---|
| committer | pp <pp@455248ca-bdda-0310-9134-f4ebb693071a> | 2004-12-22 00:54:56 +0000 |
| commit | 60dba433a0af58f1b9816f21152e3a1d610336db (patch) | |
| tree | 54daa33124cd4a39567bd4113ffb278c449b48b0 /php_imlib.h | |
| parent | 73d95d8a8172ad81a68fa5cd1e2385ed7398a6db (diff) | |
- 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
Diffstat (limited to 'php_imlib.h')
| -rw-r--r-- | php_imlib.h | 16 |
1 files changed, 9 insertions, 7 deletions
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 |
