summaryrefslogtreecommitdiffstats
path: root/0001-constify.patch
blob: 6bdfe10b29f7398dbf2c7fd15e81e6e0167741a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From af212091cd5d4b65d248bace5e2ce2c5827ed2a6 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 30 Nov 2021 11:23:03 +0100
Subject: [PATCH] constify

---
 vld.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vld.c b/vld.c
index 0c9de4c..aa11d0a 100644
--- a/vld.c
+++ b/vld.c
@@ -287,9 +287,9 @@ static zend_op_array *vld_compile_file(zend_file_handle *file_handle, int type)
 {
 	zend_op_array *op_array;
 #if PHP_VERSION_ID < 80100
-	char *filename = file_handle->filename;
+	const char *filename = file_handle->filename;
 #else
-	char *filename = ZSTR_VAL(file_handle->filename);
+	const char *filename = ZSTR_VAL(file_handle->filename);
 #endif
 
 	if (!VLD_G(execute) &&
-- 
2.33.1