Add patch files for php 5.6 installation.

This commit is contained in:
2026-03-10 23:45:13 +01:00
parent cf814e9adf
commit 4b2d7262c6
10 changed files with 136 additions and 0 deletions

10
php-5.6-libmagic.patch Normal file
View File

@@ -0,0 +1,10 @@
--- ext/fileinfo/libmagic/funcs.c.bak 2019-01-09 10:54:13.000000000 +0100
+++ ext/fileinfo/libmagic/funcs.c 2026-03-03 18:05:18.222386324 +0100
@@ -437,6 +437,7 @@
return ms->o.buf == NULL ? 0 : strlen(ms->o.buf);
}
+protected int
file_replace(struct magic_set *ms, const char *pat, const char *rep)
{
zval *patt;