summaryrefslogtreecommitdiff
path: root/src/sp_disabled_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_disabled_functions.c')
-rw-r--r--src/sp_disabled_functions.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c
index f266951..f6e06e4 100644
--- a/src/sp_disabled_functions.c
+++ b/src/sp_disabled_functions.c
@@ -573,14 +573,8 @@ static int hook_functions(HashTable* to_hook_ht, HashTable* hooked_ht) {
573 if (!HOOK_FUNCTION(ZSTR_VAL(key), disabled_functions_hook, 573 if (!HOOK_FUNCTION(ZSTR_VAL(key), disabled_functions_hook,
574 PHP_FN(check_disabled_function)) || 574 PHP_FN(check_disabled_function)) ||
575 check_is_builtin_name(((sp_list_node*)Z_PTR_P(value))->data)) { 575 check_is_builtin_name(((sp_list_node*)Z_PTR_P(value))->data)) {
576 if (zend_string_equals_literal(key, "echo") || 576 zend_symtable_add_new(hooked_ht, key, value);
577 zend_string_equals_literal(key, "print")) { 577 zend_hash_del(to_hook_ht, key);
578 zend_hash_str_add_new(hooked_ht, "echo", strlen("echo"), value);
579 zend_hash_del(to_hook_ht, key);
580 } else {
581 zend_symtable_add_new(hooked_ht, key, value);
582 zend_hash_del(to_hook_ht, key);
583 }
584 } 578 }
585 } 579 }
586 ZEND_HASH_FOREACH_END(); 580 ZEND_HASH_FOREACH_END();