From 865044f114c690a71afbd2d800d5cfbed6e8efae Mon Sep 17 00:00:00 2001 From: objecttothis Date: Mon, 15 Apr 2024 13:20:42 +0400 Subject: [PATCH] Bump CodeIgniter to 4.5.1 - CodeIgniter 4.5.1 - PSR/Log 3.0.0 - PHP >= 8.1 - Replaced mandatory files. - Modified breaking change code. - Modified updated code. - Added missing files. Signed-off-by: objecttothis --- phpunit.xml.dist | 116 +++++++++++++++++++------------------ preload.php | 3 +- tests/.htaccess | 6 ++ writable/debugbar/.gitkeep | 0 writable/index.html | 11 ++++ 5 files changed, 80 insertions(+), 56 deletions(-) create mode 100644 tests/.htaccess delete mode 100644 writable/debugbar/.gitkeep create mode 100644 writable/index.html diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 51c5fddc5..dea940878 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,57 +1,63 @@ - - - - ./app - - - ./app/Views - ./app/Config/Routes.php - - - - - - - - - - - ./tests - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + ./tests + + + + + + + + + + ./app + + + ./app/Views + ./app/Config/Routes.php + + + + + + + + + + + + + + diff --git a/preload.php b/preload.php index 63c781c22..2fa699388 100644 --- a/preload.php +++ b/preload.php @@ -49,11 +49,12 @@ class preload */ private array $paths = [ [ - 'include' => __DIR__ . '/vendor/codeigniter4/framework/system', + 'include' => __DIR__ . '/vendor/codeigniter4/framework/system', // Change this path if using manual installation 'exclude' => [ // Not needed if you don't use them. '/system/Database/OCI8/', '/system/Database/Postgre/', + '/system/Database/SQLite3/', '/system/Database/SQLSRV/', // Not needed. '/system/Database/Seeder.php', diff --git a/tests/.htaccess b/tests/.htaccess new file mode 100644 index 000000000..3462048ad --- /dev/null +++ b/tests/.htaccess @@ -0,0 +1,6 @@ + + Require all denied + + + Deny from all + diff --git a/writable/debugbar/.gitkeep b/writable/debugbar/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/writable/index.html b/writable/index.html new file mode 100644 index 000000000..b702fbc39 --- /dev/null +++ b/writable/index.html @@ -0,0 +1,11 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + +