diff options
author | Anatol Belski <ab@php.net> | 2015-07-29 10:35:57 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-07-29 10:36:30 +0200 |
commit | 0787cd60ed3d0c8c8c8ff7e49b9bb3587bf33b64 (patch) | |
tree | 77fd146f85e4847ad64421f646dc7d98000ce97e /ext/date/php_date.h | |
parent | 43cdfd9a82f99ddfc21c3b11bdebc565a4349634 (diff) | |
download | php-git-0787cd60ed3d0c8c8c8ff7e49b9bb3587bf33b64.tar.gz |
first stone on using the unified globals accessor
Diffstat (limited to 'ext/date/php_date.h')
-rw-r--r-- | ext/date/php_date.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/date/php_date.h b/ext/date/php_date.h index a2f5261ee6..116ea328e0 100644 --- a/ext/date/php_date.h +++ b/ext/date/php_date.h @@ -202,11 +202,7 @@ ZEND_BEGIN_MODULE_GLOBALS(date) int timezone_valid; ZEND_END_MODULE_GLOBALS(date) -#ifdef ZTS -#define DATEG(v) ZEND_TSRMG(date_globals_id, zend_date_globals *, v) -#else -#define DATEG(v) (date_globals.v) -#endif +#define DATEG(v) ZEND_MODULE_GLOBALS_ACCESSOR(date, v) /* Backwards compatibility wrapper */ PHPAPI zend_long php_parse_date(char *string, zend_long *now); |