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_session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_session.c') 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 @@ ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) -#if ( HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) ) +#if (HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)) #ifdef ZTS static ts_rsrc_id session_globals_id = 0; @@ -165,6 +165,6 @@ void hook_session() { #else -void hook_session() { } +void hook_session() {} #endif // HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) -- cgit v1.3