From 86407a7347963c4d6eb532a770d38df6223976e0 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 27 Jun 2022 22:47:20 +0200 Subject: Minor code simplification --- src/sp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sp_utils.c b/src/sp_utils.c index d7200b1..2ec1750 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -182,7 +182,7 @@ int sp_log_request(const zend_string* restrict folder, const zend_string* restri #if PHP_VERSION_ID >= 80000 fprintf(file, "EVAL_CODE: %s\n", ZSTR_VAL(SPG(eval_source_string))); #else - fprintf(file, "EVAL_CODE: %s\n", ZSTR_VAL(zval_get_string(SPG(eval_source_string)))); + fprintf(file, "EVAL_CODE: %s\n", Z_STRVAL_P(SPG(eval_source_string))); #endif } -- cgit v1.3