diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-06-15 18:33:09 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-06-15 18:33:09 +0000 |
commit | 1dbaae2795b756a3875c53da00b277f241cc04b8 (patch) | |
tree | fd516b57354eb9480e89dcd0503fa990d3cc2068 /ext/posix/posix.c | |
parent | c3ed91477a011e494559d6f65301ef6b2e38cd22 (diff) | |
download | php-git-1dbaae2795b756a3875c53da00b277f241cc04b8.tar.gz |
Added automatic module globals management
Diffstat (limited to 'ext/posix/posix.c')
-rw-r--r-- | ext/posix/posix.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index edbc561ec1..bb1935c435 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -49,6 +49,7 @@ #endif ZEND_DECLARE_MODULE_GLOBALS(posix) +static PHP_MINFO_FUNCTION(posix); /* {{{ posix_functions[] */ @@ -148,7 +149,7 @@ static PHP_MINFO_FUNCTION(posix) } /* }}} */ -static void php_posix_init_globals(zend_posix_globals *posix_globals TSRMLS_DC) +static PHP_GINIT_FUNCTION(posix) { posix_globals->last_error = 0; } @@ -157,7 +158,6 @@ static void php_posix_init_globals(zend_posix_globals *posix_globals TSRMLS_DC) */ static PHP_MINIT_FUNCTION(posix) { - ZEND_INIT_MODULE_GLOBALS(posix, php_posix_init_globals, NULL); REGISTER_LONG_CONSTANT("POSIX_F_OK", F_OK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("POSIX_X_OK", X_OK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("POSIX_W_OK", W_OK, CONST_CS | CONST_PERSISTENT); @@ -182,8 +182,6 @@ static PHP_MINIT_FUNCTION(posix) } /* }}} */ -static PHP_MINFO_FUNCTION(posix); - /* {{{ posix_module_entry */ zend_module_entry posix_module_entry = { @@ -195,8 +193,12 @@ zend_module_entry posix_module_entry = { NULL, NULL, PHP_MINFO(posix), - NO_VERSION_YET, - STANDARD_MODULE_PROPERTIES + NO_VERSION_YET, + PHP_MODULE_GLOBALS(posix), + PHP_GINIT(posix), + NULL, + NULL, + STANDARD_MODULE_PROPERTIES_EX }; /* }}} */ |