Upgrading from 4.2.1 to 4.2.2
Please refer to the upgrade instructions corresponding to your installation method.
For example, if you enable SecureHeaders, the Response headers are now sent when the page comes from the cache.
If you have written code based on this bug that assumes changes to the Response in “after” filters are not cached then sensitive information could be cached and compromised. If this is the case, change your code to disable caching of the page.
Forge::createTable()no longer executes a
CREATE TABLE IF NOT EXISTS. When $ifNotExists is true, if the table is not found in
CREATE TABLEis executed.
The second parameter
Forge::_createTable()is deprecated. It is no longer used and will be removed in a future release.
When you use
random_string()with the first parameter
'crypto', now if you set the second parameter
$lento an odd number,
InvalidArgumentExceptionwill be thrown. Change the parameter to an even number.
Numerous files in the project space (root, app, public, writable) received updates. Due to these files being outside of the system scope they will not be changed without your intervention. There are some third-party CodeIgniter modules available to assist with merging changes to the project space: Explore on Packagist.
Except in very rare cases for bug fixes, no changes made to files for the project space will break your application. All changes noted here are optional until the next major version, and any mandatory changes will be covered in the sections above.
This is a list of all files in the project space that received changes; many will be simple comments or formatting that have no effect on the runtime: