Skip to content

Commit 8a7d1d8

Browse files
author
foobar
committed
ZEND macro-rename.
1 parent a2dd662 commit 8a7d1d8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ext/gmp/gmp.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ function_entry gmp_functions[] = {
8888
zend_module_entry gmp_module_entry = {
8989
"gmp",
9090
gmp_functions,
91-
ZEND_MINIT(gmp),
92-
ZEND_MSHUTDOWN(gmp),
91+
ZEND_MODULE_STARTUP_N(gmp),
92+
ZEND_MODULE_SHUTDOWN_N(gmp),
9393
NULL, /* Replace with NULL if there's nothing to do at request start */
9494
NULL, /* Replace with NULL if there's nothing to do at request end */
95-
ZEND_MINFO(gmp),
95+
ZEND_MODULE_INFO_N(gmp),
9696
STANDARD_MODULE_PROPERTIES
9797
};
9898
/* }}} */
@@ -135,7 +135,7 @@ static void gmp_efree(void *ptr, size_t size)
135135

136136
/* {{{ ZEND_MINIT_FUNCTION
137137
*/
138-
ZEND_MINIT_FUNCTION(gmp)
138+
ZEND_MODULE_STARTUP_D(gmp)
139139
{
140140
le_gmp = zend_register_list_destructors_ex(_php_gmpnum_free, NULL, GMP_RESOURCE_NAME, module_number);
141141
REGISTER_LONG_CONSTANT("GMP_ROUND_ZERO", GMP_ROUND_ZERO, CONST_CS | CONST_PERSISTENT);
@@ -150,15 +150,15 @@ ZEND_MINIT_FUNCTION(gmp)
150150

151151
/* {{{ ZEND_MSHUTDOWN_FUNCTION
152152
*/
153-
ZEND_MSHUTDOWN_FUNCTION(gmp)
153+
ZEND_MODULE_SHUTDOWN_D(gmp)
154154
{
155155
return SUCCESS;
156156
}
157157
/* }}} */
158158

159159
/* {{{ ZEND_MINFO_FUNCTION
160160
*/
161-
ZEND_MINFO_FUNCTION(gmp)
161+
ZEND_MODULE_INFO_D(gmp)
162162
{
163163
php_info_print_table_start();
164164
php_info_print_table_header(2, "gmp support", "enabled");

ext/gmp/php_gmp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ extern zend_module_entry gmp_module_entry;
3333
#define GMP_API
3434
#endif
3535

36-
ZEND_MINIT_FUNCTION(gmp);
37-
ZEND_MSHUTDOWN_FUNCTION(gmp);
38-
ZEND_MINFO_FUNCTION(gmp);
36+
ZEND_MODULE_STARTUP_D(gmp);
37+
ZEND_MODULE_SHUTDOWN_D(gmp);
38+
ZEND_MODULE_INFO_D(gmp);
3939

4040
ZEND_FUNCTION(gmp_init);
4141
ZEND_FUNCTION(gmp_intval);

0 commit comments

Comments
 (0)