summaryrefslogtreecommitdiff
path: root/src/sp_config_keywords.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2022-01-12 19:08:28 +0100
committerBen Fuhrmannek2022-01-12 19:08:28 +0100
commit02fa1c084405fc96ba83a06cd83047ecd8eb22cb (patch)
tree3d55ce9987881183fa6d5a3b696da7ab6aac9e71 /src/sp_config_keywords.c
parentbbe6eaabbd0ff750e2e44c5b49c0ac4ea761c86b (diff)
make session support a runtime check instead of compile time
Diffstat (limited to 'src/sp_config_keywords.c')
-rw-r--r--src/sp_config_keywords.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c
index 138da75..3e2b156 100644
--- a/src/sp_config_keywords.c
+++ b/src/sp_config_keywords.c
@@ -39,15 +39,6 @@ SP_PARSE_FN(parse_session) {
39 39
40 SP_PROCESS_CONFIG_KEYWORDS_ERR(); 40 SP_PROCESS_CONFIG_KEYWORDS_ERR();
41 41
42#if (!HAVE_PHP_SESSION || defined(COMPILE_DL_SESSION))
43 sp_log_err("config",
44 "You're trying to use the session cookie encryption feature "
45 "on line %zu without having session support statically built into PHP. "
46 "This isn't supported, see "
47 "https://github.com/jvoisin/snuffleupagus/issues/278 for details.", parsed_rule->lineno);
48 return SP_PARSER_ERROR;
49#endif
50
51 if (cfg->encrypt) { 42 if (cfg->encrypt) {
52 if (!SPCFG(cookies_env_var)) { 43 if (!SPCFG(cookies_env_var)) {
53 sp_log_err("config", "You're trying to use the session cookie encryption feature " 44 sp_log_err("config", "You're trying to use the session cookie encryption feature "