summaryrefslogtreecommitdiff
path: root/src/sp_disabled_functions.h
blob: 4e9f7ad11b41596032704b1b48d752087ff3fc02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __SP_DISABLE_FUNCTIONS_H
#define __SP_DISABLE_FUNCTIONS_H

extern zend_write_func_t zend_write_default;

int hook_disabled_functions();
int hook_echo(const char*, size_t);
bool should_disable(zend_execute_data *, const char *, const zend_string *,
                    const char *, const sp_list_node *, const zend_string *);
bool should_disable_ht(zend_execute_data *, const char *, const zend_string *,
                       const char *, const sp_list_node *, const HashTable *);
bool should_drop_on_ret_ht(zval *, const char *, const sp_list_node* config,
                           const HashTable *);
bool should_drop_on_ret(zval *, const sp_list_node* config, const char *);
char* get_complete_function_path(zend_execute_data const* const);

#endif /* __SP_DISABLE_FUNCTIONS_H */