From a48297dfc1144931e18073a87ed83ea337e3d37a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 23 Feb 2019 00:03:14 +0000 Subject: Add php8 to travis and fix php7.4 - Use clang-format on the code - Improve portability wrt. php8 - Fix php7.4 compatibility. See https://dustri.org/b/fixing-snuffleupagus-sloppy-comparison-on-array_keys-for-php74.html for a detailed writeup--- src/sp_utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sp_utils.c') diff --git a/src/sp_utils.c b/src/sp_utils.c index acac310..1231bee 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -344,7 +344,9 @@ int hook_function(const char* original_name, HashTable* hook_table, } } +#if PHP_VERSION_ID < 80000 CG(compiler_options) |= ZEND_COMPILE_NO_BUILTIN_STRLEN; +#endif if (0 == strncmp(original_name, "mb_", 3) && !CG(multibyte)) { if (zend_hash_str_find(CG(function_table), -- cgit v1.3