Skip to content

Commit 13251a2

Browse files
committed
docs: add changelog and ugrade note
1 parent 006d38c commit 13251a2

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

user_guide_src/source/changelogs/v4.4.0.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ Autoloader
6464
Previously, CodeIgniter's autoloader allowed loading class names ending with the `.php` extension. This means instantiating objects like `new Foo.php()` was possible
6565
and would instantiate as `new Foo()`. Since `Foo.php` is an invalid class name, this behavior of the autoloader is changed. Now, instantiating such classes would fail.
6666

67+
.. _v440-codeigniter-and-exit:
68+
69+
CodeIgniter and exit()
70+
----------------------
71+
72+
The ``CodeIgniter::run()`` method no longer calls ``exit(EXIT_SUCCESS)``. The
73+
exit call is moved to **public/index.php**.
74+
6775
.. _v440-interface-changes:
6876

6977
Interface Changes

user_guide_src/source/installation/upgrade_440.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,24 @@ match the new array structure.
117117
Mandatory File Changes
118118
**********************
119119

120+
index.php
121+
=========
122+
123+
The following file received significant changes and
124+
**you must merge the updated versions** with your application:
125+
126+
- ``public/index.php`` (see also :ref:`v440-codeigniter-and-exit`)
127+
128+
.. important:: If you don't update the above file, CodeIgniter will not work
129+
properly after running ``composer update``.
130+
131+
The upgrade procedure, for example, is as follows:
132+
133+
.. code-block:: console
134+
135+
composer update
136+
cp vendor/codeigniter4/framework/public/index.php public/index.php
137+
120138
Config Files
121139
============
122140

0 commit comments

Comments
 (0)