File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,7 @@ static const zend_function_entry hashids_methods[] = {
339339 PHP_FE_END
340340};
341341
342+ /* GINIT */
342343PHP_GINIT_FUNCTION (hashids ) {
343344 hashids_globals -> salt = NULL ;
344345 hashids_globals -> min_hash_length = 0 ;
@@ -360,6 +361,8 @@ PHP_MINIT_FUNCTION(hashids)
360361
361362PHP_MSHUTDOWN_FUNCTION (hashids )
362363{
364+ UNREGISTER_INI_ENTRIES ();
365+
363366 //free
364367 hashids_free (hashids_entry );
365368 return SUCCESS ;
@@ -949,7 +952,11 @@ zend_module_entry hashids_module_entry = {
949952 NULL ,
950953 PHP_MINFO (hashids ),
951954 PHP_HASHIDS_VERSION ,
952- STANDARD_MODULE_PROPERTIES
955+ PHP_MODULE_GLOBALS (hashids ),
956+ PHP_GINIT (hashids ),
957+ NULL ,
958+ NULL ,
959+ STANDARD_MODULE_PROPERTIES_EX
953960};
954961
955962#ifdef COMPILE_DL_HASHIDS
You can’t perform that action at this time.
0 commit comments