Skip to content

Commit a79690c

Browse files
committed
Move mptr/obj_tmp declarations closer to use
1 parent ad2dbc8 commit a79690c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

ext/reflection/php_reflection.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4395,17 +4395,16 @@ ZEND_METHOD(ReflectionClass, getMethod)
43954395
{
43964396
const reflection_object *intern;
43974397
zend_class_entry *ce;
4398-
zend_function *mptr;
4399-
zval obj_tmp;
44004398
zend_string *name;
4401-
bool is_invoke;
44024399

44034400
if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &name) == FAILURE) {
44044401
RETURN_THROWS();
44054402
}
44064403

44074404
GET_REFLECTION_OBJECT_PTR(ce);
4408-
is_invoke = is_closure_invoke(ce, name);
4405+
zend_function *mptr;
4406+
zval obj_tmp;
4407+
bool is_invoke = is_closure_invoke(ce, name);
44094408
if (!Z_ISUNDEF(intern->obj) && is_invoke
44104409
&& (mptr = zend_get_closure_invoke_method(Z_OBJ(intern->obj))) != NULL)
44114410
{

0 commit comments

Comments
 (0)