Skip to content

Commit fe74aa1

Browse files
committed
zend_API.c: rename variable to prevent variable shadowing
1 parent d9dea1a commit fe74aa1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Zend/zend_API.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3733,14 +3733,14 @@ static bool zend_is_callable_check_class(zend_string *name, zend_class_entry *sc
37333733
ret = true;
37343734
}
37353735
} else if ((ce = zend_lookup_class(name)) != NULL) {
3736-
zend_class_entry *scope = get_scope(frame);
3736+
zend_class_entry *frame_scope = get_scope(frame);
37373737
fcc->calling_scope = ce;
3738-
if (scope && !fcc->object) {
3738+
if (frame_scope && !fcc->object) {
37393739
zend_object *object = zend_get_this_object(frame);
37403740

37413741
if (object &&
3742-
instanceof_function(object->ce, scope) &&
3743-
instanceof_function(scope, ce)) {
3742+
instanceof_function(object->ce, frame_scope) &&
3743+
instanceof_function(frame_scope, ce)) {
37443744
fcc->object = object;
37453745
fcc->called_scope = object->ce;
37463746
} else {

0 commit comments

Comments
 (0)