summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;