Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions ext/reflection/php_reflection.c
Original file line number Diff line number Diff line change
Expand Up @@ -3302,10 +3302,7 @@ static void instantiate_reflection_method(INTERNAL_FUNCTION_PARAMETERS, bool is_

lcname = zend_str_tolower_dup(method_name, method_name_len);

if (ce == zend_ce_closure && orig_obj && (method_name_len == sizeof(ZEND_INVOKE_FUNC_NAME)-1)
&& memcmp(lcname, ZEND_INVOKE_FUNC_NAME, sizeof(ZEND_INVOKE_FUNC_NAME)-1) == 0
&& (mptr = zend_get_closure_invoke_method(orig_obj)) != NULL)
{
if (is_closure_invoke(ce, lcname) && orig_obj && (mptr = zend_get_closure_invoke_method(orig_obj)) != NULL) {
/* Store the original closure object so we can validate it in invoke/invokeArgs.
* Each closure has a unique __invoke signature, so we must reject different closures. */
ZVAL_OBJ_COPY(&intern->obj, orig_obj);
Expand Down
Loading