File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ extern zend_module_entry sysvsem_module_entry;
30
30
#define PHP_SYSVSEM_VERSION PHP_VERSION
31
31
32
32
PHP_MINIT_FUNCTION (sysvsem );
33
+ PHP_MINFO_FUNCTION (sysvsem );
33
34
PHP_FUNCTION (sem_get );
34
35
PHP_FUNCTION (sem_acquire );
35
36
PHP_FUNCTION (sem_release );
Original file line number Diff line number Diff line change 41
41
#include <errno.h>
42
42
43
43
#include "php_sysvsem.h"
44
+ #include "ext/standard/info.h"
44
45
45
46
#if !HAVE_SEMUN
46
47
@@ -99,7 +100,7 @@ zend_module_entry sysvsem_module_entry = {
99
100
NULL ,
100
101
NULL ,
101
102
NULL ,
102
- NULL ,
103
+ PHP_MINFO ( sysvsem ) ,
103
104
PHP_SYSVSEM_VERSION ,
104
105
STANDARD_MODULE_PROPERTIES
105
106
};
@@ -178,6 +179,16 @@ PHP_MINIT_FUNCTION(sysvsem)
178
179
}
179
180
/* }}} */
180
181
182
+ /* {{{ PHP_MINFO_FUNCTION
183
+ */
184
+ PHP_MINFO_FUNCTION (sysvsem )
185
+ {
186
+ php_info_print_table_start ();
187
+ php_info_print_table_row (2 , "sysvsem support" , "enabled" );
188
+ php_info_print_table_end ();
189
+ }
190
+ /* }}} */
191
+
181
192
#define SETVAL_WANTS_PTR
182
193
183
194
#if defined(_AIX )
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ typedef struct {
71
71
} sysvshm_shm ;
72
72
73
73
PHP_MINIT_FUNCTION (sysvshm );
74
+ PHP_MINFO_FUNCTION (sysvshm );
74
75
PHP_FUNCTION (shm_attach );
75
76
PHP_FUNCTION (shm_detach );
76
77
PHP_FUNCTION (shm_remove );
Original file line number Diff line number Diff line change 35
35
#include <errno.h>
36
36
37
37
#include "php_sysvshm.h"
38
+ #include "ext/standard/info.h"
38
39
#include "ext/standard/php_var.h"
39
40
#include "zend_smart_str.h"
40
41
#include "php_ini.h"
@@ -100,7 +101,7 @@ zend_module_entry sysvshm_module_entry = {
100
101
NULL ,
101
102
NULL ,
102
103
NULL ,
103
- NULL ,
104
+ PHP_MINFO ( sysvshm ) ,
104
105
PHP_SYSVSHM_VERSION ,
105
106
STANDARD_MODULE_PROPERTIES
106
107
};
@@ -147,6 +148,16 @@ PHP_MINIT_FUNCTION(sysvshm)
147
148
}
148
149
/* }}} */
149
150
151
+ /* {{{ PHP_MINFO_FUNCTION
152
+ */
153
+ PHP_MINFO_FUNCTION (sysvshm )
154
+ {
155
+ php_info_print_table_start ();
156
+ php_info_print_table_row (2 , "sysvshm support" , "enabled" );
157
+ php_info_print_table_end ();
158
+ }
159
+ /* }}} */
160
+
150
161
/* {{{ proto int shm_attach(int key [, int memsize [, int perm]])
151
162
Creates or open a shared memory segment */
152
163
PHP_FUNCTION (shm_attach )
You can’t perform that action at this time.
0 commit comments