diff options
| author | jvoisin | 2019-02-23 00:03:14 +0000 |
|---|---|---|
| committer | GitHub | 2019-02-23 00:03:14 +0000 |
| commit | a48297dfc1144931e18073a87ed83ea337e3d37a (patch) | |
| tree | dbd421aeed4541b8392bb9cf9b5ea575244e1b83 /src/sp_utils.c | |
| parent | 01dbd02341d4afa753830a1e642a59c8f7a0bbee (diff) | |
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
Diffstat (limited to 'src/sp_utils.c')
| -rw-r--r-- | src/sp_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, | |||
| 344 | } | 344 | } |
| 345 | } | 345 | } |
| 346 | 346 | ||
| 347 | #if PHP_VERSION_ID < 80000 | ||
| 347 | CG(compiler_options) |= ZEND_COMPILE_NO_BUILTIN_STRLEN; | 348 | CG(compiler_options) |= ZEND_COMPILE_NO_BUILTIN_STRLEN; |
| 349 | #endif | ||
| 348 | 350 | ||
| 349 | if (0 == strncmp(original_name, "mb_", 3) && !CG(multibyte)) { | 351 | if (0 == strncmp(original_name, "mb_", 3) && !CG(multibyte)) { |
| 350 | if (zend_hash_str_find(CG(function_table), | 352 | if (zend_hash_str_find(CG(function_table), |
