File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -3782,6 +3782,7 @@ PHP_MSHUTDOWN_FUNCTION(basic) /* {{{ */
3782
3782
#endif
3783
3783
BASIC_MSHUTDOWN_SUBMODULE (crypt )
3784
3784
BASIC_MSHUTDOWN_SUBMODULE (random )
3785
+ BASIC_MSHUTDOWN_SUBMODULE (password )
3785
3786
3786
3787
zend_hash_destroy (& basic_submodules );
3787
3788
return SUCCESS ;
Original file line number Diff line number Diff line change @@ -523,6 +523,17 @@ PHP_MINIT_FUNCTION(password) /* {{{ */
523
523
}
524
524
/* }}} */
525
525
526
+ PHP_MSHUTDOWN_FUNCTION (password ) /* {{{ */
527
+ {
528
+ #ifdef ZTS
529
+ if (!tsrm_is_main_thread ()) {
530
+ return ;
531
+ }
532
+ #endif
533
+ zend_hash_destroy (& php_password_algos );
534
+ }
535
+ /* }}} */
536
+
526
537
const php_password_algo * php_password_algo_default () {
527
538
return & php_password_algo_bcrypt ;
528
539
}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ PHP_FUNCTION(password_get_info);
27
27
PHP_FUNCTION (password_algos );
28
28
29
29
PHP_MINIT_FUNCTION (password );
30
+ PHP_MSHUTDOWN_FUNCTION (password );
30
31
31
32
#define PHP_PASSWORD_DEFAULT PHP_PASSWORD_BCRYPT
32
33
#define PHP_PASSWORD_BCRYPT_COST 10
You can’t perform that action at this time.
0 commit comments