summaryrefslogtreecommitdiff
path: root/src/sp_disabled_functions.c
diff options
context:
space:
mode:
authorjvoisin2020-08-12 08:48:59 +0000
committerGitHub2020-08-12 10:48:59 +0200
commita0d21a189cf04bb963dce93dcbd0bd9694584a0b (patch)
tree59fa646b7536fbef7de42eb111c82df592262a12 /src/sp_disabled_functions.c
parentf3360c4de72b6735bc5f5873dd671c2e56292ce6 (diff)
Allow empty configuration (#342)
This commit allows php to run (with a warning) if there is no specified snuffleupagus configuration, instead of refusing to start.
Diffstat (limited to '')
-rw-r--r--src/sp_disabled_functions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c
index a7136df..7be1c34 100644
--- a/src/sp_disabled_functions.c
+++ b/src/sp_disabled_functions.c
@@ -575,12 +575,12 @@ ZEND_FUNCTION(eval_blacklist_callback) {
575 } 575 }
576 if (config_eval->simulation) { 576 if (config_eval->simulation) {
577 sp_log_simulation("eval", 577 sp_log_simulation("eval",
578 "A call to %s was tried in eval, in %s:%d, logging it.", 578 "A call to %s was tried in eval, in %s:%d, logging it.",
579 current_function_name, ZSTR_VAL(filename), line_number); 579 current_function_name, ZSTR_VAL(filename), line_number);
580 } else { 580 } else {
581 sp_log_drop("eval", 581 sp_log_drop("eval",
582 "A call to %s was tried in eval, in %s:%d, dropping it.", 582 "A call to %s was tried in eval, in %s:%d, dropping it.",
583 current_function_name, ZSTR_VAL(filename), line_number); 583 current_function_name, ZSTR_VAL(filename), line_number);
584 } 584 }
585 efree(filename); 585 efree(filename);
586 } 586 }