summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-03-02 11:07:57 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-03-03 11:55:48 +0100
commit53efa1b0c69b463ea9d3606d828c036129f2dec9 (patch)
treec4b2a0e33acce36638f200af3b1add704a2e2e88 /Zend/zend_API.h
parenta7a2e9857e96abc2147e895f8d844a6e73e86170 (diff)
downloadphp-git-53efa1b0c69b463ea9d3606d828c036129f2dec9.tar.gz
Store aliased name of trait method
Currently, trait methods are aliased will continue to use the original function name. In a few places in the codebase, we will try to look up the actual method name instead. However, this does not work if an aliased method is used indirectly (https://bugs.php.net/bug.php?id=69180). I think it would be better to instead actually change the method name to the alias. This is in principle easy: We have to allow function_name to be changed even if op array is otherwise shared (similar to static_variables). This means we need to addref/release the function_name separately, but I don't think there is a performance concern here (especially as everything is usually interned). There is a bit of complication in opcache, where we need to make sure that the function name is released the correct number of times (interning may overwrite the name in the original op_array, but we need to release it as many times as the op_array is shared). Fixes bug #69180. Fixes bug #74939. Closes GH-5226.
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r--Zend/zend_API.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 4c29a0f1b9..0e93159167 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -575,9 +575,6 @@ static zend_always_inline int zend_forbid_dynamic_call(const char *func_name)
return SUCCESS;
}
-ZEND_API zend_string *zend_find_alias_name(zend_class_entry *ce, zend_string *name);
-ZEND_API zend_string *zend_resolve_method_name(zend_class_entry *ce, zend_function *f);
-
ZEND_API ZEND_COLD const char *zend_get_object_type(const zend_class_entry *ce);
ZEND_API zend_bool zend_is_iterable(zval *iterable);