diff options
Diffstat (limited to 'src/snuffleupagus.c')
| -rw-r--r-- | src/snuffleupagus.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c index edca185..ad1d0a9 100644 --- a/src/snuffleupagus.c +++ b/src/snuffleupagus.c | |||
| @@ -261,6 +261,13 @@ static PHP_INI_MH(OnUpdateConfiguration) { | |||
| 261 | // This is needed to implement the global strict mode | 261 | // This is needed to implement the global strict mode |
| 262 | CG(compiler_options) |= ZEND_COMPILE_HANDLE_OP_ARRAY; | 262 | CG(compiler_options) |= ZEND_COMPILE_HANDLE_OP_ARRAY; |
| 263 | } | 263 | } |
| 264 | if (zend_hash_str_find(SNUFFLEUPAGUS_G(config).config_disabled_functions_hooked, | ||
| 265 | "echo", strlen("echo")) || | ||
| 266 | zend_hash_str_find(SNUFFLEUPAGUS_G(config).config_disabled_functions_ret_hooked, | ||
| 267 | "echo", strlen("echo"))) { | ||
| 268 | zend_write_default = zend_write; | ||
| 269 | zend_write = hook_echo; | ||
| 270 | } | ||
| 264 | 271 | ||
| 265 | SNUFFLEUPAGUS_G(config).hook_execute = | 272 | SNUFFLEUPAGUS_G(config).hook_execute = |
| 266 | SNUFFLEUPAGUS_G(config).config_disabled_functions_reg->disabled_functions || | 273 | SNUFFLEUPAGUS_G(config).config_disabled_functions_reg->disabled_functions || |
