included zip into requirements, php 7 users which did not have them crashed

This commit is contained in:
kremsy 2017-03-10 20:09:39 +01:00
parent cebdb05027
commit 2b44ed609d
3 changed files with 14 additions and 2 deletions

View File

@ -39,6 +39,7 @@ http://www.maniacontrol.com
- php_curl
- php_xmlrpc (TM only, recommended for SM)
- php_zlib
- php_zip
### How to report bugs or request features?:
- Write a mail to bugs(at)maniacontrol(dot)com

View File

@ -404,7 +404,8 @@ class ErrorHandler {
* @param \Exception $exception
* @param bool $shutdown
*/
public function handleException(\Exception $exception, $shutdown = true) {
public function handleException($exception, $shutdown = true) {
//Removed error type, as php throwed the exception in a case and it was not from class Exception weiredly
$message = "[ManiaControl EXCEPTION]: {$exception->getMessage()}";
$exceptionClass = get_class($exception);

View File

@ -77,11 +77,21 @@ class SystemUtil {
Logger::log($message . 'FOUND!');
}
// Check for ZIP
$message = 'Checking for installed PHP ZIP ... ';
if (!extension_loaded('zip')) {
Logger::log($message . 'NOT FOUND!');
Logger::log(" -- You don't have php-zip installed! Check: http://at1.php.net/manual/en/zip.installation.php");
$success = false;
} else {
Logger::log($message . 'FOUND!');
}
// Check for Zlib
$message = 'Checking for installed Zlib ... ';
if (!extension_loaded('zlib')) {
Logger::log($message . 'NOT FOUND!');
Logger::log(" -- You don't have Zlib installed! Check: http://php.net/manual/de/zlib.setup.php");
Logger::log(" -- You don't have Zlib installed! Check: http://php.net/manual/en/zlib.setup.php");
$success = false;
} else {
Logger::log($message . 'FOUND!');