1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

check mbstring.func_overload, so you don't end up with a thousand corrupt files like me :)

This commit is contained in:
Anonymous 2015-08-14 21:45:00 +03:00
parent df89cb845d
commit a5662ed8cc
2 changed files with 23 additions and 0 deletions

View file

@ -81,6 +81,14 @@ function check_php_pdo_mysql()
return class_exists('PDO') ? in_array('mysql', PDO::getAvailableDrivers()) : false;
}
function check_mbstring_func_overload()
{
if ( ini_get('mbstring.func_overload') > 0) {
return false;
}
return true;
}
/**
* check_config_values
* checks to make sure that they have at least set the needed variables

View file

@ -164,6 +164,21 @@
<?php echo T_('This tests whether Ampache can manage large files (> 2GB). This is not strictly necessary, but may result in a better experience. This generally requires 64-bit operating system.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP mbstring.func_overload'); ?></td>
<td valign="top">
<?php echo debug_result(check_mbstring_func_overload()); ?>
</td>
<td>
<?php printf(T_('This tests whether PHP %s is set as it may break the ID3 tag support.'), '<a href="http://php.net/manual/en/mbstring.overload.php">mbstring.func_overload</a>'); ?>
<?php
if (!check_mbstring_func_overload()) {
echo "<br />";
echo T_('Enabling Ampache ID3 tag write support along with mbstring.func_overload may result in irreversible corruption of your music files.\n\nYOU HAVE BEEN WARNED!');
}
?>
</td>
</tr>
<?php
if (!defined('INSTALL')) {
?>