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_session.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_session.c')
| -rw-r--r-- | src/sp_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_session.c b/src/sp_session.c index c708ea0..0f45f9b 100644 --- a/src/sp_session.c +++ b/src/sp_session.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) | 4 | ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) |
| 5 | 5 | ||
| 6 | #if ( HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) ) | 6 | #if (HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)) |
| 7 | 7 | ||
| 8 | #ifdef ZTS | 8 | #ifdef ZTS |
| 9 | static ts_rsrc_id session_globals_id = 0; | 9 | static ts_rsrc_id session_globals_id = 0; |
| @@ -165,6 +165,6 @@ void hook_session() { | |||
| 165 | 165 | ||
| 166 | #else | 166 | #else |
| 167 | 167 | ||
| 168 | void hook_session() { } | 168 | void hook_session() {} |
| 169 | 169 | ||
| 170 | #endif // HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) | 170 | #endif // HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) |
