diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
commit | d87cc976e1156b839fc6d4aa6b473a126802b8e3 (patch) | |
tree | 8acb068dd7458e1c8df3a7d8ecb87d065990fdb1 /ext/ctype | |
parent | b4f3b9d3ce9f55cf040fb5aa8f201c64646cab43 (diff) | |
download | php-git-d87cc976e1156b839fc6d4aa6b473a126802b8e3.tar.gz |
Redesigned thread safety mechanism - nua nua
Diffstat (limited to 'ext/ctype')
-rw-r--r-- | ext/ctype/ctype.c | 1 | ||||
-rw-r--r-- | ext/ctype/php_ctype.h | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c index 4fe50ef9de..5265f1d5b1 100644 --- a/ext/ctype/ctype.c +++ b/ext/ctype/ctype.c @@ -86,7 +86,6 @@ ZEND_GET_MODULE(ctype) PHP_MINFO_FUNCTION(ctype) { TSRMLS_FETCH(); - SLS_FETCH(); php_info_print_table_start(); php_info_print_table_row(2, "ctype functions", "enabled (experimental)"); diff --git a/ext/ctype/php_ctype.h b/ext/ctype/php_ctype.h index 8b4ff6f4fd..279aa7c1b4 100644 --- a/ext/ctype/php_ctype.h +++ b/ext/ctype/php_ctype.h @@ -62,18 +62,16 @@ ZEND_END_MODULE_GLOBALS(ctype) */ /* In every function that needs to use variables in php_ctype_globals, - do call CTYPELS_FETCH(); after declaring other variables used by + do call TSRMLS_FETCH(); after declaring other variables used by that function, and always refer to them as CTYPEG(variable). You are encouraged to rename these macros something shorter, see examples in any other php module directory. */ #ifdef ZTS -#define CTYPEG(v) (ctype_globals->v) -#define CTYPELS_FETCH() php_ctype_globals *ctype_globals = ts_resource(ctype_globals_id) +#define CTYPEG(v) TSRMG(ctype_globals_id, php_ctype_globals *, v) #else #define CTYPEG(v) (ctype_globals.v) -#define CTYPELS_FETCH() #endif #else |