Skip to content

Instantly share code, notes, and snippets.

@nikita2206
Created October 2, 2014 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikita2206/8c8cee8c88f0ce4832e3 to your computer and use it in GitHub Desktop.
Save nikita2206/8c8cee8c88f0ce4832e3 to your computer and use it in GitHub Desktop.
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 19185df..a4440d9 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -4120,6 +4120,7 @@ static int zend_traits_copy_functions(zend_function *fn TSRMLS_DC, int num_args,
&& alias->trait_method->mname_len == fnname_len
&& (zend_binary_strcasecmp(alias->trait_method->method_name, alias->trait_method->mname_len, hash_key->arKey, fnname_len) == 0)) {
fn_copy = *fn;
+ fn_copy.common.function_name = alias->alias;
/* if it is 0, no modifieres has been changed */
if (alias->modifiers) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment