diff options
Diffstat (limited to 'src/sp_utils.c')
| -rw-r--r-- | src/sp_utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c index df2f0d6..d7200b1 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c | |||
| @@ -177,6 +177,15 @@ int sp_log_request(const zend_string* restrict folder, const zend_string* restri | |||
| 177 | ZEND_HASH_FOREACH_END(); | 177 | ZEND_HASH_FOREACH_END(); |
| 178 | fputs("\n", file); | 178 | fputs("\n", file); |
| 179 | } | 179 | } |
| 180 | |||
| 181 | if (UNEXPECTED(0 != SPG(in_eval))) { | ||
| 182 | #if PHP_VERSION_ID >= 80000 | ||
| 183 | fprintf(file, "EVAL_CODE: %s\n", ZSTR_VAL(SPG(eval_source_string))); | ||
| 184 | #else | ||
| 185 | fprintf(file, "EVAL_CODE: %s\n", ZSTR_VAL(zval_get_string(SPG(eval_source_string)))); | ||
| 186 | #endif | ||
| 187 | } | ||
| 188 | |||
| 180 | fclose(file); | 189 | fclose(file); |
| 181 | 190 | ||
| 182 | return 0; | 191 | return 0; |
