Files
development/www/admin/error_test.php
Clemens Schwaighofer 40e6444c2a CoreLibs update
2026-01-06 18:22:17 +09:00

21 lines
379 B
PHP

<?php
declare(strict_types=1);
$DEBUG_LEVEL = \CoreLibs\Logging\Logger\Level::Debug;
if ($DEBUG_LEVEL->name == 'Debug') {
error_reporting(E_ALL);
}
// sample config
require 'config.php';
echo "FILE: " . BASE . LIB . "Error.Handling.php<br>";
require(BASE . LIB . "Error.Handling.php");
if ($var) {
echo "OUT<br>";
}
// this wll throw an error and also write
// asdfa(09);