diff options
| author | xXx-caillou-xXx | 2018-07-13 14:47:49 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-13 12:47:49 +0000 |
| commit | b1bf270b41f94ce2df668be611e5b646397a7a52 (patch) | |
| tree | 8b661feaecb1914c38ac572e51a2b7bedd13b81d /src/sp_config_keywords.c | |
| parent | e8e5314f44dbbbaf5e421aaad88408ff20c5a248 (diff) | |
Fix hooking on `print`
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index 81f43f7..8e1c2dc 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -472,6 +472,11 @@ int parse_disabled_functions(char *line) { | |||
| 472 | return ret; | 472 | return ret; |
| 473 | } | 473 | } |
| 474 | 474 | ||
| 475 | if (df->function && zend_string_equals_literal(df->function, "print")) { | ||
| 476 | zend_string_release(df->function); | ||
| 477 | df->function = zend_string_init("echo", strlen("echo"), 1); | ||
| 478 | } | ||
| 479 | |||
| 475 | if (df->function && !df->functions_list) { | 480 | if (df->function && !df->functions_list) { |
| 476 | if (df->ret || df->r_ret || df->ret_type) { | 481 | if (df->ret || df->r_ret || df->ret_type) { |
| 477 | add_df_to_hashtable(SNUFFLEUPAGUS_G(config).config_disabled_functions_ret, | 482 | add_df_to_hashtable(SNUFFLEUPAGUS_G(config).config_disabled_functions_ret, |
