We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dad3af commit 5dee60fCopy full SHA for 5dee60f
1 file changed
hashids.c
@@ -339,6 +339,7 @@ static const zend_function_entry hashids_methods[] = {
339
PHP_FE_END
340
};
341
342
+/* GINIT */
343
PHP_GINIT_FUNCTION(hashids) {
344
hashids_globals->salt = NULL;
345
hashids_globals->min_hash_length = 0;
@@ -360,6 +361,8 @@ PHP_MINIT_FUNCTION(hashids)
360
361
362
PHP_MSHUTDOWN_FUNCTION(hashids)
363
{
364
+ UNREGISTER_INI_ENTRIES();
365
+
366
//free
367
hashids_free(hashids_entry);
368
return SUCCESS;
@@ -949,7 +952,11 @@ zend_module_entry hashids_module_entry = {
949
952
NULL,
950
953
PHP_MINFO(hashids),
951
954
PHP_HASHIDS_VERSION,
- STANDARD_MODULE_PROPERTIES
955
+ PHP_MODULE_GLOBALS(hashids),
956
+ PHP_GINIT(hashids),
957
+ NULL,
958
959
+ STANDARD_MODULE_PROPERTIES_EX
960
961
962
#ifdef COMPILE_DL_HASHIDS
0 commit comments