summaryrefslogtreecommitdiffstats
path: root/0001-constify.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-11-30 11:29:38 +0100
committerRemi Collet <remi@php.net>2021-11-30 11:29:38 +0100
commitf180723049d5f8e6e5bdeda4a0bf52484cfb5c55 (patch)
tree3c1527039dbd0aa8cffaa5db30a62420de77a785 /0001-constify.patch
parenta82f714c60300b412ac1119db2ff2c80c4f06230 (diff)
update to 0.17.2
add patch for build warnings from https://github.com/derickr/vld/pull/72
Diffstat (limited to '0001-constify.patch')
-rw-r--r--0001-constify.patch28
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
+