diff options
Diffstat (limited to 'src/sp_utils.c')
| -rw-r--r-- | src/sp_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c index 52e494f..81941f7 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c | |||
| @@ -360,7 +360,7 @@ int hook_function(const char* original_name, HashTable* hook_table, | |||
| 360 | } | 360 | } |
| 361 | } else { // TODO this can be moved somewhere else to gain some marginal perfs | 361 | } else { // TODO this can be moved somewhere else to gain some marginal perfs |
| 362 | CG(compiler_options) |= ZEND_COMPILE_NO_BUILTIN_STRLEN; | 362 | CG(compiler_options) |= ZEND_COMPILE_NO_BUILTIN_STRLEN; |
| 363 | char* mb_name = pecalloc(strlen(original_name) + 3 + 1, 1, 0); | 363 | char* mb_name = ecalloc(strlen(original_name) + 3 + 1, 1); |
| 364 | memcpy(mb_name, "mb_", 3); | 364 | memcpy(mb_name, "mb_", 3); |
| 365 | memcpy(mb_name + 3, VAR_AND_LEN(original_name)); | 365 | memcpy(mb_name + 3, VAR_AND_LEN(original_name)); |
| 366 | if (zend_hash_str_find(CG(function_table), VAR_AND_LEN(mb_name))) { | 366 | if (zend_hash_str_find(CG(function_table), VAR_AND_LEN(mb_name))) { |
