diff options
| author | Ben Fuhrmannek | 2021-11-19 16:47:08 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-11-19 16:47:08 +0100 |
| commit | 0462573a7678468b19bc4865c75f7b82dbedbe03 (patch) | |
| tree | 2300593bcde4ecf2af3ac315270736f9e18ae3fb /src/sp_config_keywords.c | |
| parent | c447df6ce8964b2863a50f0f8027d9b234b7507f (diff) | |
added old php version check
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index cf44ed9..cbe4966 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #include "php_snuffleupagus.h" | 1 | #include "php_snuffleupagus.h" |
| 2 | 2 | ||
| 3 | #define SP_SET_ENABLE_DISABLE(enable, disable, varname) \ | 3 | #define SP_SET_ENABLE_DISABLE(enable, disable, varname) \ |
| 4 | if (((varname) || enable) && disable) { \ | 4 | if (enable && disable) { \ |
| 5 | sp_log_err("config", "A rule can't be enabled and disabled on line %zu", parsed_rule->lineno); \ | 5 | sp_log_err("config", "A rule can't be enabled and disabled on line %zu", parsed_rule->lineno); \ |
| 6 | return SP_PARSER_ERROR; \ | 6 | return SP_PARSER_ERROR; \ |
| 7 | } \ | 7 | } \ |
| @@ -133,6 +133,7 @@ SP_PARSE_FN(parse_global) { | |||
| 133 | {parse_ulong, SP_TOKEN_MAX_EXECUTION_DEPTH, &(SPCFG(max_execution_depth))}, | 133 | {parse_ulong, SP_TOKEN_MAX_EXECUTION_DEPTH, &(SPCFG(max_execution_depth))}, |
| 134 | {parse_enable, SP_TOKEN_SERVER_ENCODE, &(SPCFG(server_encode))}, | 134 | {parse_enable, SP_TOKEN_SERVER_ENCODE, &(SPCFG(server_encode))}, |
| 135 | {parse_enable, SP_TOKEN_SERVER_STRIP, &(SPCFG(server_strip))}, | 135 | {parse_enable, SP_TOKEN_SERVER_STRIP, &(SPCFG(server_strip))}, |
| 136 | {parse_enable, SP_TOKEN_SHOW_OLD_PHP_WARNING, &(SPCFG(show_old_php_warning))}, | ||
| 136 | {0, 0, 0}}; | 137 | {0, 0, 0}}; |
| 137 | 138 | ||
| 138 | SP_PROCESS_CONFIG_KEYWORDS_ERR(); | 139 | SP_PROCESS_CONFIG_KEYWORDS_ERR(); |
