Skip to content

Commit

Permalink
Do a clang-format pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Jan 2, 2021
1 parent ebd47e7 commit fb4e6f5
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/sp_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,19 @@ int sp_log_request(const zend_string* restrict folder,

fprintf(file, "FILE: %s:%d\n", current_filename, current_line);


zend_execute_data *orig_execute_data = EG(current_execute_data);
zend_execute_data *current = EG(current_execute_data);
while (current) {
zend_execute_data* orig_execute_data = EG(current_execute_data);
zend_execute_data* current = EG(current_execute_data);
while (current) {
EG(current_execute_data) = current;
char* const complete_path_function = get_complete_function_path(current);
if (complete_path_function) {
const int current_line = zend_get_executed_lineno(TSRMLS_C);
fprintf(file, "STACKTRACE: %s:%d\n", complete_path_function, current_line);
}
if (complete_path_function) {
const int current_line = zend_get_executed_lineno(TSRMLS_C);
fprintf(file, "STACKTRACE: %s:%d\n", complete_path_function,
current_line);
}
current = current->prev_execute_data;
}
EG(current_execute_data) = orig_execute_data;

}
EG(current_execute_data) = orig_execute_data;

for (size_t i = 0; zones[i].str; i++) {
zval* variable_value;
Expand Down

0 comments on commit fb4e6f5

Please sign in to comment.