diff options
Diffstat (limited to '0001-constify.patch')
-rw-r--r-- | 0001-constify.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/0001-constify.patch b/0001-constify.patch new file mode 100644 index 0000000..6bdfe10 --- /dev/null +++ b/0001-constify.patch @@ -0,0 +1,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 + |