included zip into requirements, php 7 users which did not have them crashed
This commit is contained in:
@ -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);
|
||||
|
@ -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!');
|
||||
|
Reference in New Issue
Block a user