Skip to content

Commit 49d94a7

Browse files
committed
Fix CI 4.3 fail
1 parent 9d1eb06 commit 49d94a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+8437
-3
lines changed

codeigniter-4.3/.gitignore

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
#-------------------------
2+
# Operating Specific Junk Files
3+
#-------------------------
4+
5+
# OS X
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# OS X Thumbnails
11+
._*
12+
13+
# Windows image file caches
14+
Thumbs.db
15+
ehthumbs.db
16+
Desktop.ini
17+
18+
# Recycle Bin used on file shares
19+
$RECYCLE.BIN/
20+
21+
# Windows Installer files
22+
*.cab
23+
*.msi
24+
*.msm
25+
*.msp
26+
27+
# Windows shortcuts
28+
*.lnk
29+
30+
# Linux
31+
*~
32+
33+
# KDE directory preferences
34+
.directory
35+
36+
# Linux trash folder which might appear on any partition or disk
37+
.Trash-*
38+
39+
#-------------------------
40+
# Environment Files
41+
#-------------------------
42+
# These should never be under version control,
43+
# as it poses a security risk.
44+
.env
45+
.vagrant
46+
Vagrantfile
47+
48+
#-------------------------
49+
# Temporary Files
50+
#-------------------------
51+
writable/cache/*
52+
!writable/cache/index.html
53+
54+
writable/logs/*
55+
!writable/logs/index.html
56+
57+
writable/session/*
58+
!writable/session/index.html
59+
60+
writable/uploads/*
61+
!writable/uploads/index.html
62+
63+
writable/debugbar/*
64+
65+
php_errors.log
66+
67+
#-------------------------
68+
# User Guide Temp Files
69+
#-------------------------
70+
user_guide_src/build/*
71+
user_guide_src/cilexer/build/*
72+
user_guide_src/cilexer/dist/*
73+
user_guide_src/cilexer/pycilexer.egg-info/*
74+
75+
#-------------------------
76+
# Test Files
77+
#-------------------------
78+
tests/coverage*
79+
80+
# Don't save phpunit under version control.
81+
phpunit
82+
83+
#-------------------------
84+
# Composer
85+
#-------------------------
86+
vendor/
87+
88+
#-------------------------
89+
# IDE / Development Files
90+
#-------------------------
91+
92+
# Modules Testing
93+
_modules/*
94+
95+
# phpenv local config
96+
.php-version
97+
98+
# Jetbrains editors (PHPStorm, etc)
99+
.idea/
100+
*.iml
101+
102+
# Netbeans
103+
nbproject/
104+
build/
105+
nbbuild/
106+
dist/
107+
nbdist/
108+
nbactions.xml
109+
nb-configuration.xml
110+
.nb-gradle/
111+
112+
# Sublime Text
113+
*.tmlanguage.cache
114+
*.tmPreferences.cache
115+
*.stTheme.cache
116+
*.sublime-workspace
117+
*.sublime-project
118+
.phpintel
119+
/api/
120+
121+
# Visual Studio Code
122+
.vscode/
123+
124+
/results/
125+
/phpunit*.xml
126+
/.phpunit.*.cache
127+

codeigniter-4.3/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014-2019 British Columbia Institute of Technology
4+
Copyright (c) 2019-2023 CodeIgniter Foundation
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

codeigniter-4.3/README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# CodeIgniter 4 Application Starter
2+
3+
## What is CodeIgniter?
4+
5+
CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure.
6+
More information can be found at the [official site](https://codeigniter.com).
7+
8+
This repository holds a composer-installable app starter.
9+
It has been built from the
10+
[development repository](https://github.com/codeigniter4/CodeIgniter4).
11+
12+
More information about the plans for version 4 can be found in [CodeIgniter 4](https://forum.codeigniter.com/forumdisplay.php?fid=28) on the forums.
13+
14+
The user guide corresponding to the latest version of the framework can be found
15+
[here](https://codeigniter4.github.io/userguide/).
16+
17+
## Installation & updates
18+
19+
`composer create-project codeigniter4/appstarter` then `composer update` whenever
20+
there is a new release of the framework.
21+
22+
When updating, check the release notes to see if there are any changes you might need to apply
23+
to your `app` folder. The affected files can be copied or merged from
24+
`vendor/codeigniter4/framework/app`.
25+
26+
## Setup
27+
28+
Copy `env` to `.env` and tailor for your app, specifically the baseURL
29+
and any database settings.
30+
31+
## Important Change with index.php
32+
33+
`index.php` is no longer in the root of the project! It has been moved inside the *public* folder,
34+
for better security and separation of components.
35+
36+
This means that you should configure your web server to "point" to your project's *public* folder, and
37+
not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter *public/...*, as the rest of your logic and the
38+
framework are exposed.
39+
40+
**Please** read the user guide for a better explanation of how CI4 works!
41+
42+
## Repository Management
43+
44+
We use GitHub issues, in our main repository, to track **BUGS** and to track approved **DEVELOPMENT** work packages.
45+
We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss
46+
FEATURE REQUESTS.
47+
48+
This repository is a "distribution" one, built by our release preparation script.
49+
Problems with it can be raised on our forum, or as issues in the main repository.
50+
51+
## Server Requirements
52+
53+
PHP version 7.4 or higher is required, with the following extensions installed:
54+
55+
- [intl](http://php.net/manual/en/intl.requirements.php)
56+
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
57+
58+
Additionally, make sure that the following extensions are enabled in your PHP:
59+
60+
- json (enabled by default - don't turn it off)
61+
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) if you plan to use MySQL
62+
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

codeigniter-4.3/_benchmark/codeigniter/public/index.php

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
1717

1818
// Ensure the current directory is pointing to the front controller's directory
19-
chdir(FCPATH);
19+
if (getcwd() . DIRECTORY_SEPARATOR !== FCPATH) {
20+
chdir(FCPATH);
21+
}
2022

2123
/*
2224
*---------------------------------------------------------------
@@ -41,13 +43,23 @@
4143
require_once SYSTEMPATH . 'Config/DotEnv.php';
4244
(new CodeIgniter\Config\DotEnv(ROOTPATH))->load();
4345

46+
// Define ENVIRONMENT
47+
if (! defined('ENVIRONMENT')) {
48+
define('ENVIRONMENT', env('CI_ENVIRONMENT', 'production'));
49+
}
50+
51+
// Load Config Cache
52+
// $factoriesCache = new \CodeIgniter\Cache\FactoriesCache();
53+
// $factoriesCache->load('config');
54+
// ^^^ Uncomment these lines if you want to use Config Caching.
55+
4456
/*
4557
* ---------------------------------------------------------------
4658
* GRAB OUR CODEIGNITER INSTANCE
4759
* ---------------------------------------------------------------
4860
*
4961
* The CodeIgniter class contains the core functionality to make
50-
* the application run, and does all of the dirty work to get
62+
* the application run, and does all the dirty work to get
5163
* the pieces all working together.
5264
*/
5365

@@ -60,12 +72,20 @@
6072
*---------------------------------------------------------------
6173
* LAUNCH THE APPLICATION
6274
*---------------------------------------------------------------
63-
* Now that everything is setup, it's time to actually fire
75+
* Now that everything is set up, it's time to actually fire
6476
* up the engines and make this app do its thang.
6577
*/
6678

6779
$app->run();
6880

81+
// Save Config Cache
82+
// $factoriesCache->save('config');
83+
// ^^^ Uncomment this line if you want to use Config Caching.
84+
85+
// Exits the application, setting the exit code for CLI-based applications
86+
// that might be watching.
87+
// exit(EXIT_SUCCESS);
88+
6989

7090
/* *** PHP-Frameworks-Bench *** */
7191
require $_SERVER['DOCUMENT_ROOT'].'/PHP-Frameworks-Bench/libs/output_data.php';

codeigniter-4.3/app/Common.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* The goal of this file is to allow developers a location
5+
* where they can overwrite core procedural functions and
6+
* replace them with their own. This file is loaded during
7+
* the bootstrap process and is called during the framework's
8+
* execution.
9+
*
10+
* This can be looked at as a `master helper` file that is
11+
* loaded early on, and may also contain additional functions
12+
* that you'd like to use throughout your entire application
13+
*
14+
* @see: https://codeigniter.com/user_guide/extending/common.html
15+
*/

0 commit comments

Comments
 (0)