diff options
| author | jvoisin | 2022-03-20 18:43:35 +0100 |
|---|---|---|
| committer | jvoisin | 2022-03-20 19:07:35 +0100 |
| commit | 57b345f16ccad6e5b273c58e819ca5adefdcbf72 (patch) | |
| tree | 4ee854853720a8a559ed7d34c977be8f42ff2bb6 /src/sp_config_keywords.c | |
| parent | 70aae5917737e42f392edc00ceb7af35b7740eb8 (diff) | |
Fix compilation on PHP<7.2
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index 9a9b608..f7be731 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -321,7 +321,7 @@ SP_PARSE_FN(parse_disabled_functions) { | |||
| 321 | goto out; | 321 | goto out; |
| 322 | } | 322 | } |
| 323 | if (df->filename && (*ZSTR_VAL(df->filename) != '/') && | 323 | if (df->filename && (*ZSTR_VAL(df->filename) != '/') && |
| 324 | (0 != strncmp(ZSTR_VAL(df->filename), ZEND_STRL("phar://")))) { | 324 | (0 != strncmp(ZSTR_VAL(df->filename), "phar://", sizeof("phar://")))) { |
| 325 | sp_log_err("config", "Invalid configuration line: 'sp.disabled_functions': '.filename' must be an absolute path or a phar archive on line %zu", parsed_rule->lineno); | 325 | sp_log_err("config", "Invalid configuration line: 'sp.disabled_functions': '.filename' must be an absolute path or a phar archive on line %zu", parsed_rule->lineno); |
| 326 | goto out; | 326 | goto out; |
| 327 | } | 327 | } |
