Skip to content

Commit 05b7d79

Browse files
committed
fix zts core dump .
1 parent 5dee60f commit 05b7d79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ PHP_ARG_ENABLE(hashids, whether to enable hashids support,
55
[ --enable-hashids Enable hashids support])
66

77
if test "$PHP_HASHIDS" != "no"; then
8-
PHP_NEW_EXTENSION(hashids, hashids.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
8+
PHP_NEW_EXTENSION(hashids, hashids.c, $ext_shared)
99
fi

hashids.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo__construct, 0, 0, 3)
3939
ZEND_END_ARG_INFO()
4040

4141
PHP_INI_BEGIN()
42-
STD_PHP_INI_ENTRY("hashids.salt", HASHIDS_DEFAULT_SALT, PHP_INI_ALL, OnUpdateStringUnempty, salt, zend_hashids_globals, hashids_globals)
42+
STD_PHP_INI_ENTRY("hashids.salt", HASHIDS_DEFAULT_SALT, PHP_INI_ALL, OnUpdateString, salt, zend_hashids_globals, hashids_globals)
4343
STD_PHP_INI_ENTRY("hashids.min_hash_length", "0", PHP_INI_ALL, OnUpdateLong, min_hash_length, zend_hashids_globals, hashids_globals)
44-
STD_PHP_INI_ENTRY("hashids.alphabet", HASHIDS_DEFAULT_ALPHABET, PHP_INI_ALL, OnUpdateStringUnempty, alphabet, zend_hashids_globals, hashids_globals)
44+
STD_PHP_INI_ENTRY("hashids.alphabet", HASHIDS_DEFAULT_ALPHABET, PHP_INI_ALL, OnUpdateString, alphabet, zend_hashids_globals, hashids_globals)
4545
PHP_INI_END()
4646

4747
/* branch prediction hinting */
@@ -362,7 +362,7 @@ PHP_MINIT_FUNCTION(hashids)
362362
PHP_MSHUTDOWN_FUNCTION(hashids)
363363
{
364364
UNREGISTER_INI_ENTRIES();
365-
365+
366366
//free
367367
hashids_free(hashids_entry);
368368
return SUCCESS;

0 commit comments

Comments
 (0)