mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
* Update libmagic to 5.45
This also cleans up magicdata.patch: changes that are already in upstream file
were removed from that patch file.
There are five (expected) test output changes.
All these were also checked with the file command.
- bug77961.phpt changes because there's now an early error-return in the
`if (ts == FILE_BADSIZE) {` branch.
- cve-2014-1943.phpt and cve-2014-1943-mb.phpt change because now the crafted
data is recognised as a simh file.
- bug71434.phpt now properly recognises it as a Python file.
- ext/fileinfo/tests/finfo_file_basic.phpt more specific mime type.
* Adjust memory requirement for s390x fileinfo run
The larger database causes a higher memory usage.
Similar to 962c082a5b.
* [ci skip] NEWS
9 lines
358 B
Bash
Executable File
9 lines
358 B
Bash
Executable File
VERSION=5.45
|
|
if [[ ! -d libmagic.orig ]]; then
|
|
mkdir libmagic.orig
|
|
wget -O - ftp://ftp.astron.com/pub/file/file-$VERSION.tar.gz \
|
|
| tar -xz --strip-components=2 -C libmagic.orig file-$VERSION/src
|
|
fi
|
|
sed -e "s/X\.YY/${VERSION//.}/g" libmagic.orig/magic.h.in > libmagic.orig/magic.h
|
|
diff -u libmagic.orig libmagic | grep -v '^Only in' > libmagic.patch
|