Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4f1b005

Browse files
authored
Autotools: Enable tsrmls cache in hash extension on big endian (#15303)
When system is detected as big endian this enables the TSRM Local Storage static cache with the ZEND_ENABLE_STATIC_TSRMLS_CACHE compilation flag. Previously it was enabled only on little endian systems.
1 parent 3df665a commit 4f1b005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎ext/hash/config.m4‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ AS_VAR_IF([ac_cv_c_bigendian_php], [yes], [
3131
SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-opt64.c"
3232
])
3333
EXT_HASH_SHA3_SOURCES="$SHA3_OPT_SRC $SHA3_DIR/KeccakHash.c $SHA3_DIR/KeccakSponge.c"
34-
PHP_HASH_CFLAGS="$PHP_HASH_CFLAGS -I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
34+
PHP_HASH_CFLAGS="$PHP_HASH_CFLAGS -I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded"
3535
])
3636

3737
PHP_NEW_EXTENSION([hash], m4_normalize([
@@ -58,7 +58,7 @@ PHP_NEW_EXTENSION([hash], m4_normalize([
5858
murmur/PMurHash128.c
5959
]),
6060
[no],,
61-
[$PHP_HASH_CFLAGS])
61+
[$PHP_HASH_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
6262
PHP_ADD_BUILD_DIR([$ext_builddir/murmur])
6363
AS_VAR_IF([SHA3_DIR],,, [PHP_ADD_BUILD_DIR([$ext_builddir/$SHA3_DIR])])
6464
PHP_INSTALL_HEADERS([ext/hash], m4_normalize([

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /