Version 4.6.1
Release Date: May 2, 2025
4.6.1 release of CodeIgniter4
Changes
Mimes: Added the
model/stlandapplication/octet-streammime types for thestlextension inside theConfig\Mimesclass.
Deprecations
Cache: The
FileHandler::writeFile()method is deprecated. Usewrite_file()instead.Cache: The
FileHandler::deleteFiles()method is deprecated. Usedelete_files()instead.Cache: The
FileHandler::getDirFileInfo()method is deprecated. Useget_dir_file_info()instead.Cache: The
FileHandler::getFileInfo()method is deprecated. Useget_file_info()instead.
Bugs Fixed
CURLRequest: Fixed an issue where multiple header sections appeared in the CURL response body during multiple redirects from the target server.
Cors: Fixed a bug in the Cors filter that caused the appropriate headers to not be added when another filter returned a response object in the
beforefilter.Database: Fixed a bug in
PostgreandSQLite3handlers where composite unique keys were not fully taken into account forupserttype of queries.Database: Fixed a bug in the
OCI8andSQLSRVdrivers wheregetVersion()returned an empty string when the database connection was not yet established.Logger: Fixed a bug where the
{line}variable couldn’t be used without specifying the{file}variable when logging the message.Session: Fixed a bug where
Session::markAsTempdata()would give the wrong TTL when array data is supplied toSession::setTempdata().Toolbar: Fixed a bug where setting
maxHistoryto0would produce a JavaScript error in the Debug Toolbar.Toolbar: Fixed a bug where setting
maxHistoryto0prevented log files from being properly cleared.
See the repo’s CHANGELOG.md for a complete list of bugs fixed.