From 4d0eed50f0b6fb154790994b8d43827ce1cf08a0 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Mon, 16 May 2022 14:22:21 +0300 Subject: [PATCH] first commit --- README.md | 0 error.inc.php | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 README.md create mode 100644 error.inc.php diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/error.inc.php b/error.inc.php new file mode 100644 index 0000000..9411236 --- /dev/null +++ b/error.inc.php @@ -0,0 +1,27 @@ +getMessage() . "\n"; + $stderr = fopen('php://stderr', 'a'); + fwrite($stderr, $msg); + fclose($stderr); + exit(1); +} + +set_error_handler("_gamectl_error_handler"); +set_exception_handler("_gamectl_exception_handler"); +