There is an option mentioned here -> https://bugs.php.net/bug.php?id=61940#1336148541 of a workaround to the problem.
if (version_compare(PHP_VERSION, '5.3.11') >= 0) {
$magicfile = 'magic_php-gte-5_3_11.mgc'; } else { $magicfile = 'magic_php-lt-5-3-11.mgc'; } $magicpath = __DIR__ . "/../../../config/{$magicfile}";
Where we use both our old magic DB (the one from Ubuntu/Debian), and the one bundled here: https://raw.github.com/php/php-src/master/ext/fileinfo/tests/magic
We could use this until the problem is fixed with PHP
There is an option mentioned here -> https:/ /bugs.php. net/bug. php?id= 61940#133614854 1
of a workaround to the problem.
if (version_ compare( PHP_VERSION, '5.3.11') >= 0) {
$magicfile = 'magic_ php-gte- 5_3_11. mgc'; php-lt- 5-3-11. mgc'; /../config/ {$magicfile} ";
} else {
$magicfile = 'magic_
}
$magicpath = __DIR__ . "/../..
Where we use both our old magic DB (the one from Ubuntu/Debian), and the one bundled here: https:/ /raw.github. com/php/ php-src/ master/ ext/fileinfo/ tests/magic
We could use this until the problem is fixed with PHP