Skip to content

Commit 9cff5a2

Browse files
committed
remove some code and add phpinfo
1 parent d2f1f48 commit 9cff5a2

File tree

1 file changed

+3
-33
lines changed

1 file changed

+3
-33
lines changed

dcode.c

+3-33
Original file line numberDiff line numberDiff line change
@@ -132,27 +132,6 @@ zend_module_entry dcode_module_entry = {
132132
ZEND_GET_MODULE(dcode)
133133
#endif
134134

135-
/* {{{ PHP_INI
136-
*/
137-
/* Remove comments and fill if you need to have entries in php.ini
138-
PHP_INI_BEGIN()
139-
STD_PHP_INI_ENTRY("dcode.global_value", "42", PHP_INI_ALL, OnUpdateLong, global_value, zend_dcode_globals, dcode_globals)
140-
STD_PHP_INI_ENTRY("dcode.global_string", "foobar", PHP_INI_ALL, OnUpdateString, global_string, zend_dcode_globals, dcode_globals)
141-
PHP_INI_END()
142-
*/
143-
/* }}} */
144-
145-
/* {{{ php_dcode_init_globals
146-
*/
147-
/* Uncomment this function if you have INI entries
148-
static void php_dcode_init_globals(zend_dcode_globals *dcode_globals)
149-
{
150-
dcode_globals->global_value = 0;
151-
dcode_globals->global_string = NULL;
152-
}
153-
*/
154-
/* }}} */
155-
156135
/* {{{ PHP_MINIT_FUNCTION
157136
*/
158137
PHP_MINIT_FUNCTION(dcode)
@@ -168,9 +147,6 @@ PHP_MINIT_FUNCTION(dcode)
168147
*/
169148
PHP_MSHUTDOWN_FUNCTION(dcode)
170149
{
171-
/* uncomment this line if you have INI entries
172-
UNREGISTER_INI_ENTRIES();
173-
*/
174150
return SUCCESS;
175151
}
176152
/* }}} */
@@ -199,19 +175,13 @@ PHP_MINFO_FUNCTION(dcode)
199175
{
200176
php_info_print_table_start();
201177
php_info_print_table_header(2, "dcode support", "enabled");
178+
php_info_print_table_row(2, "dcode", "Version 0.1.0");
179+
php_info_print_table_row(2, "QR Code encoder", "Version 3.4.4");
180+
php_info_print_table_row(2, "author", "pochonlee@gmail.com");
202181
php_info_print_table_end();
203-
204-
/* Remove comments if you have entries in php.ini
205-
DISPLAY_INI_ENTRIES();
206-
*/
207182
}
208183
/* }}} */
209184

210-
211-
/* Remove the following function when you have successfully modified config.m4
212-
so that your module can be compiled into PHP, it exists only for testing
213-
purposes. */
214-
215185
/** {{{ dcode_md5(char *src, uint src_len, char* out)
216186
Return char* out */
217187
static char* dcode_md5(char *src, uint src_len, char *md5str)

0 commit comments

Comments
 (0)