Skip to content

Commit e99477b

Browse files
xingskycnxingskycn
authored andcommitted
modify
1 parent f91db81 commit e99477b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

04.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@
6666
{ 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL } //END
6767
};
6868

69+
/*初始化ini值的宏*/
70+
ZEND_INIT_MODULE_GLOBALS(module_name, globals_ctor, globals_dtor)
71+
72+
#module_name 与传递给ZEND_BEGIN_MODULE_GLOBALS()宏相同的扩展名称。
73+
#globals_ctor 构造函数指针。在myfile扩展里,函数原形与void php_myfile_init_globals(zend_myfile_globals *myfile_globals)类似
74+
#globals_dtor 析构函数指针。例如,php_myfile_init_globals(zend_myfile_globals *myfile_globals)
75+
6976
4,注册/清除/显示 ini变量
7077

7178
PHP_MINIT_FUNCTION(inis)

0 commit comments

Comments
 (0)