1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00

move to the ZEND_DECLARE_MODULE_GLOBALS() and ZEND_EXTERN_MODULE_GLOBALS

macros
This commit is contained in:
Sterling Hughes
2002-02-07 22:00:21 +00:00
parent 7270b4223d
commit ed6d751cd9
2 changed files with 4 additions and 11 deletions
+3 -6
View File
@@ -96,6 +96,8 @@ typedef struct _php_ps_globals {
zend_bool output_handler_registered;
} php_ps_globals;
typedef php_ps_globals zend_ps_globals;
extern zend_module_entry session_module_entry;
#define phpext_session_ptr &session_module_entry
@@ -190,12 +192,7 @@ PHPAPI void php_session_start(TSRMLS_D);
} \
}
#ifdef ZTS
extern int ps_globals_id;
#else
extern php_ps_globals ps_globals;
#endif
ZEND_EXTERN_MODULE_GLOBALS(ps);
void php_session_auto_start(void *data);
void php_session_shutdown(void *data);
+1 -5
View File
@@ -75,11 +75,7 @@ function_entry session_functions[] = {
};
/* }}} */
#ifdef ZTS
int ps_globals_id;
#else
php_ps_globals ps_globals;
#endif
ZEND_DECLARE_MODULE_GLOBALS(ps);
static ps_module *_php_find_ps_module(char *name TSRMLS_DC);
static const ps_serializer *_php_find_ps_serializer(char *name TSRMLS_DC);