summaryrefslogtreecommitdiff
path: root/src/sp_session.c
diff options
context:
space:
mode:
authorjvoisin2019-02-23 00:03:14 +0000
committerGitHub2019-02-23 00:03:14 +0000
commita48297dfc1144931e18073a87ed83ea337e3d37a (patch)
treedbd421aeed4541b8392bb9cf9b5ea575244e1b83 /src/sp_session.c
parent01dbd02341d4afa753830a1e642a59c8f7a0bbee (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.c4
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
4ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) 4ZEND_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
9static ts_rsrc_id session_globals_id = 0; 9static ts_rsrc_id session_globals_id = 0;
@@ -165,6 +165,6 @@ void hook_session() {
165 165
166#else 166#else
167 167
168void hook_session() { } 168void hook_session() {}
169 169
170#endif // HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) 170#endif // HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)