summaryrefslogtreecommitdiff
path: root/src/php_snuffleupagus.h
diff options
context:
space:
mode:
authorjvoisin2018-01-10 14:56:33 +0100
committerGitHub2018-01-10 14:56:33 +0100
commitad6b3e723fe26bf1a3a573aed776960916d35499 (patch)
treeeec9e15028f4529d776489d273bf9699333aa987 /src/php_snuffleupagus.h
parentb6e5bc4557cca3abbcfd179e7143ea54b9844e49 (diff)
Eval whitelist
Implement whitelist in eval
Diffstat (limited to 'src/php_snuffleupagus.h')
-rw-r--r--src/php_snuffleupagus.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h
index ca39bb8..93ef472 100644
--- a/src/php_snuffleupagus.h
+++ b/src/php_snuffleupagus.h
@@ -63,7 +63,7 @@ sp_config config;
63bool is_config_valid; 63bool is_config_valid;
64HashTable *disabled_functions_hook; 64HashTable *disabled_functions_hook;
65HashTable *sp_internal_functions_hook; 65HashTable *sp_internal_functions_hook;
66HashTable *sp_eval_filter_functions_hook; 66HashTable *sp_eval_blacklist_functions_hook;
67ZEND_END_MODULE_GLOBALS(snuffleupagus) 67ZEND_END_MODULE_GLOBALS(snuffleupagus)
68 68
69#define SNUFFLEUPAGUS_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(snuffleupagus, v) 69#define SNUFFLEUPAGUS_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(snuffleupagus, v)
@@ -85,7 +85,7 @@ ZEND_TSRMLS_CACHE_EXTERN()
85#endif 85#endif
86 86
87PHP_FUNCTION(check_disabled_function); 87PHP_FUNCTION(check_disabled_function);
88PHP_FUNCTION(eval_filter_callback); 88PHP_FUNCTION(eval_blacklist_callback);
89 89
90static inline void sp_terminate() { zend_bailout(); } 90static inline void sp_terminate() { zend_bailout(); }
91 91