Skip to content

Commit 2a73299

Browse files
committed
Improve logic
1 parent e73ec70 commit 2a73299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/reflection/php_reflection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7082,7 +7082,7 @@ ZEND_METHOD(ReflectionFiber, getExecutingLine)
70827082
prev_execute_data = fiber->execute_data->prev_execute_data;
70837083
}
70847084

7085-
while (prev_execute_data && prev_execute_data->func && !ZEND_USER_CODE(prev_execute_data->func->common.type)) {
7085+
while (prev_execute_data && (!prev_execute_data->func || !ZEND_USER_CODE(prev_execute_data->func->common.type))) {
70867086
prev_execute_data = prev_execute_data->prev_execute_data;
70877087
}
70887088
if (prev_execute_data && prev_execute_data->func && ZEND_USER_CODE(prev_execute_data->func->common.type)) {
@@ -7106,7 +7106,7 @@ ZEND_METHOD(ReflectionFiber, getExecutingFile)
71067106
prev_execute_data = fiber->execute_data->prev_execute_data;
71077107
}
71087108

7109-
while (prev_execute_data && prev_execute_data->func && !ZEND_USER_CODE(prev_execute_data->func->common.type)) {
7109+
while (prev_execute_data && (!prev_execute_data->func || !ZEND_USER_CODE(prev_execute_data->func->common.type))) {
71107110
prev_execute_data = prev_execute_data->prev_execute_data;
71117111
}
71127112
if (prev_execute_data && prev_execute_data->func && ZEND_USER_CODE(prev_execute_data->func->common.type)) {

0 commit comments

Comments
 (0)