Skip to content

Commit 2103df0

Browse files
committed
validate scope is set
1 parent 1c17dbc commit 2103df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,7 @@ static zend_always_inline zend_result _object_and_properties_init(zval *arg, zen
18391839
}
18401840
}
18411841

1842-
if (check_class != scope && check_class->lexical_scope && check_class->lexical_scope->type != ZEND_NAMESPACE_CLASS) {
1842+
if (scope && check_class != scope && check_class->lexical_scope && check_class->lexical_scope->type != ZEND_NAMESPACE_CLASS) {
18431843
check_class = check_class->lexical_scope;
18441844
goto check_lexical_scope;
18451845
}

0 commit comments

Comments
 (0)