summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
authorjvoisin2021-01-02 18:18:58 +0100
committerjvoisin2021-01-02 18:18:58 +0100
commitfb4e6f5fe0f1424db610b7dd563853a5d9a707ab (patch)
tree55b3611b0906495a416e8a9ad9939e8565f6bf99 /src/sp_utils.c
parentebd47e73a4973f3f4838299495b5ce3199d11305 (diff)
Do a clang-format pass
Diffstat (limited to 'src/sp_utils.c')
-rw-r--r--src/sp_utils.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c
index 8550168..147cc46 100644
--- a/src/sp_utils.c
+++ b/src/sp_utils.c
@@ -166,20 +166,19 @@ int sp_log_request(const zend_string* restrict folder,
166 166
167 fprintf(file, "FILE: %s:%d\n", current_filename, current_line); 167 fprintf(file, "FILE: %s:%d\n", current_filename, current_line);
168 168
169 169 zend_execute_data* orig_execute_data = EG(current_execute_data);
170 zend_execute_data *orig_execute_data = EG(current_execute_data); 170 zend_execute_data* current = EG(current_execute_data);
171 zend_execute_data *current = EG(current_execute_data); 171 while (current) {
172 while (current) {
173 EG(current_execute_data) = current; 172 EG(current_execute_data) = current;
174 char* const complete_path_function = get_complete_function_path(current); 173 char* const complete_path_function = get_complete_function_path(current);
175 if (complete_path_function) { 174 if (complete_path_function) {
176 const int current_line = zend_get_executed_lineno(TSRMLS_C); 175 const int current_line = zend_get_executed_lineno(TSRMLS_C);
177 fprintf(file, "STACKTRACE: %s:%d\n", complete_path_function, current_line); 176 fprintf(file, "STACKTRACE: %s:%d\n", complete_path_function,
178 } 177 current_line);
178 }
179 current = current->prev_execute_data; 179 current = current->prev_execute_data;
180 } 180 }
181 EG(current_execute_data) = orig_execute_data; 181 EG(current_execute_data) = orig_execute_data;
182
183 182
184 for (size_t i = 0; zones[i].str; i++) { 183 for (size_t i = 0; zones[i].str; i++) {
185 zval* variable_value; 184 zval* variable_value;