diff options
| author | xXx-caillou-xXx | 2018-07-13 11:38:51 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-13 09:38:51 +0000 |
| commit | 94649dee9e8b8b6c6c28b79d565ae7b388e3d6d9 (patch) | |
| tree | 106df2ad6824ec1c352fd57f577372778e64385b /src/snuffleupagus.c | |
| parent | 7963580d72a358975133f86f01de2d2eab08ba38 (diff) | |
Allow rules matching on echo and print
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 || |
