v1.0.1
AtheraStudio Database
- <?php
- declare(strict_types=1);
-
- namespace Athera;
-
- defined('ATHERA') || exit;
-
- const ROOT = __DIR__ . '/..';
- define('Athera\\VERSION', (string)require ROOT . '/version.php');
-
- error_reporting(E_ALL);
- ini_set('display_errors', '0');
- ini_set('html_errors', '0');
-
- spl_autoload_register(function (string $class): void {
- if (strncmp($class, 'Athera\\', 7) !== 0) return;
- $file = __DIR__ . '/' . str_replace('\\', '/', substr($class, 7)) . '.php';
- if (is_file($file)) require $file;
- });
-
- set_error_handler(function (int $no, string $msg, string $file = '', int $line = 0): bool {
- if (!(error_reporting() & $no)) return false;
- if ($no === E_DEPRECATED || $no === E_USER_DEPRECATED) return true;
- throw new \ErrorException($msg, 0, $no, $file, $line);
- });
-