mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
check mbstring.func_overload, so you don't end up with a thousand corrupt files like me :)
This commit is contained in:
parent
df89cb845d
commit
a5662ed8cc
2 changed files with 23 additions and 0 deletions
|
@ -81,6 +81,14 @@ function check_php_pdo_mysql()
|
||||||
return class_exists('PDO') ? in_array('mysql', PDO::getAvailableDrivers()) : false;
|
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
|
* check_config_values
|
||||||
* checks to make sure that they have at least set the needed variables
|
* checks to make sure that they have at least set the needed variables
|
||||||
|
|
|
@ -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.'); ?>
|
<?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>
|
</td>
|
||||||
</tr>
|
</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
|
<?php
|
||||||
if (!defined('INSTALL')) {
|
if (!defined('INSTALL')) {
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue