summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Fuhrmannek2022-01-10 16:22:35 +0100
committerBen Fuhrmannek2022-01-10 16:22:35 +0100
commit55264b198337e93f23a0dd63c0f12e30f32876d7 (patch)
tree92897e9da4e2d0b574ce6b79540f106525021e50
parent1700aa6192fe874c094e8f794c6803320ce72b42 (diff)
removed some debugging output
-rw-r--r--src/sp_ini.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sp_ini.c b/src/sp_ini.c
index 2238e3a..62bd181 100644
--- a/src/sp_ini.c
+++ b/src/sp_ini.c
@@ -79,7 +79,6 @@ static PHP_INI_MH(sp_ini_onmodify) {
79 zend_ini_entry *ini_entry = entry; 79 zend_ini_entry *ini_entry = entry;
80 sp_ini_entry *sp_entry = NULL; 80 sp_ini_entry *sp_entry = NULL;
81 81
82 sp_log_debug("%s =? %s", ZSTR_VAL(ini_entry->name), ZSTR_VAL(new_value));
83 if (!sp_ini_check(ini_entry->name, new_value, &sp_entry)) { 82 if (!sp_ini_check(ini_entry->name, new_value, &sp_entry)) {
84 return FAILURE; 83 return FAILURE;
85 } 84 }
@@ -96,7 +95,6 @@ void sp_hook_ini() {
96 sp_ini_entry *sp_entry; 95 sp_ini_entry *sp_entry;
97 zend_ini_entry *ini_entry; 96 zend_ini_entry *ini_entry;
98 ZEND_HASH_FOREACH_PTR(cfg->entries, sp_entry) 97 ZEND_HASH_FOREACH_PTR(cfg->entries, sp_entry)
99 sp_log_debug("hook entry `%s`", ZSTR_VAL(sp_entry->key));
100 if ((ini_entry = zend_hash_find_ptr(EG(ini_directives), sp_entry->key)) == NULL) { 98 if ((ini_entry = zend_hash_find_ptr(EG(ini_directives), sp_entry->key)) == NULL) {
101 sp_log_warn("ini_protection", "Cannot hook INI var `%s`. Maybe a typo or the PHP extension providing this var is not loaded yet.", ZSTR_VAL(sp_entry->key)); 99 sp_log_warn("ini_protection", "Cannot hook INI var `%s`. Maybe a typo or the PHP extension providing this var is not loaded yet.", ZSTR_VAL(sp_entry->key));
102 continue; 100 continue;