[core] fixes and tests for get_base_href + get_query, see #1024

This commit is contained in:
Shish
2024-02-07 22:47:12 +00:00
parent c6e65a21f9
commit 7adb7348d7
6 changed files with 95 additions and 21 deletions

View File

@@ -19,7 +19,10 @@ require_once "core/sys_config.php";
require_once "core/polyfills.php";
require_once "core/util.php";
$_SERVER['SCRIPT_FILENAME'] = '/var/www/html/test/index.php';
$_SERVER['DOCUMENT_ROOT'] = '/var/www/html';
$_SERVER['QUERY_STRING'] = '/';
if (file_exists("data/test-trace.json")) {
unlink("data/test-trace.json");
}