mirror of
https://github.com/Combodo/iTop.git
synced 2026-06-24 00:36:37 +02:00
Compare commits
1 Commits
feature/96
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5202adb902 |
@@ -3,6 +3,21 @@
|
|||||||
require_once(dirname(__FILE__, 3).'/approot.inc.php');
|
require_once(dirname(__FILE__, 3).'/approot.inc.php');
|
||||||
require_once(__DIR__.'/InstallationFileService.php');
|
require_once(__DIR__.'/InstallationFileService.php');
|
||||||
|
|
||||||
|
function fatalHandler()
|
||||||
|
{
|
||||||
|
$error = error_get_last();
|
||||||
|
if ($error) {
|
||||||
|
if ($error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR)) {
|
||||||
|
// fatal error has occured
|
||||||
|
echo "PHP Fatal captured: {$error["message"]}";
|
||||||
|
SetupLog::Error("Fatal error during setup", null, $error);
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
register_shutdown_function("fatalHandler");
|
||||||
|
|
||||||
function PrintUsageAndExit()
|
function PrintUsageAndExit()
|
||||||
{
|
{
|
||||||
echo <<<EOF
|
echo <<<EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user