Skip to content

Commit 2969852

Browse files
committed
Optimize macro usage...
1 parent 61edd1b commit 2969852

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

main/php3_compat.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ typedef zval pval;
109109
#define PHP_FALIAS(name, alias, arg_types) ZEND_FALIAS(name, alias, arg_types)
110110
#define PHP_STATIC_FE(php_name, func_name, arg_types) ZEND_STATIC_FE(php_name, func_name, arg_types)
111111

112-
#define PHP_MINIT(module) ZEND_MINIT(module)
113-
#define PHP_MSHUTDOWN(module) ZEND_MSHUTDOWN(module)
114-
#define PHP_RINIT(module) ZEND_RINIT(module)
115-
#define PHP_RSHUTDOWN(module) ZEND_RSHUTDOWN(module)
116-
#define PHP_MINFO(module) ZEND_MINFO(module)
117-
118-
#define PHP_MINIT_FUNCTION(module) ZEND_MINIT_FUNCTION(module)
119-
#define PHP_MSHUTDOWN_FUNCTION(module) ZEND_MSHUTDOWN_FUNCTION(module)
120-
#define PHP_RINIT_FUNCTION(module) ZEND_RINIT_FUNCTION(module)
121-
#define PHP_RSHUTDOWN_FUNCTION(module) ZEND_RSHUTDOWN_FUNCTION(module)
122-
#define PHP_MINFO_FUNCTION(module) ZEND_MINFO_FUNCTION(module)
112+
#define PHP_MINIT(module) ZEND_MODULE_STARTUP_N(module)
113+
#define PHP_MSHUTDOWN(module) ZEND_MODULE_SHUTDOWN_N(module)
114+
#define PHP_RINIT(module) ZEND_MODULE_ACTIVATE_N(module)
115+
#define PHP_RSHUTDOWN(module) ZEND_MODULE_DEACTIVATE_N(module)
116+
#define PHP_MINFO(module) ZEND_MODULE_INFO_N(module)
117+
118+
#define PHP_MINIT_FUNCTION(module) ZEND_MODULE_STARTUP_D(module)
119+
#define PHP_MSHUTDOWN_FUNCTION(module) ZEND_MODULE_SHUTDOWN_D(module)
120+
#define PHP_RINIT_FUNCTION(module) ZEND_MODULE_ACTIVATE_D(module)
121+
#define PHP_RSHUTDOWN_FUNCTION(module) ZEND_MODULE_DEACTIVATE_D(module)
122+
#define PHP_MINFO_FUNCTION(module) ZEND_MODULE_INFO_D(module)
123123

124124
#endif /* PHP3_COMPAT_H */

0 commit comments

Comments
 (0)