Skip to content

Releases: phalcon/cphalcon

v5.8.0

09 Jul 21:13
14b0f1c
Compare
Choose a tag to compare

5.8.0 (2024-07-09)

Changed

  • Changed Phalcon\Mvc\Model, Phalcon\Support\Collection and Phalcon\Support\Registry to correctly implement \Serializable interface. #16591
  • Changed the Phalcon\Mvc\Router\Group::getHostname() to return null also. #16601
  • Changed Phalcon\Mvc\View\Engine\Volt\Compiler::compileSource to also return array #16608

Added

  • Added events and Phalcon\Events\Manager for Phalcon\Storage\Adapter\Apcu,
    Phalcon\Storage\Adapter\Redis,
    Phalcon\Storage\Adapter\Memory,
    Phalcon\Storage\Adapter\Libmemcached,
    Phalcon\Storage\Adapter\Stream,
    Phalcon\Storage\Adapter\Weak,
    Phalcon\Cache\Adapter\Apcu,
    Phalcon\Cache\Adapter\Redis,
    Phalcon\Cache\Adapter\Memory,
    Phalcon\Cache\Adapter\Libmemcached,
    Phalcon\Cache\Adapter\Stream,
    Phalcon\Cache\Adapter\Weak
    Phalcon\Cache\AbstractCache. #16606

Fixed

  • Fixed Phalcon\Support\Helper\PascalCase causing memory leak by anonymous function #16593
  • Fixed Phalcon\Mvc\Model\Query to rollback failed transactions and re-throw exception for data consistency #16604

Removed

v5.7.0

17 May 19:36
03653b4
Compare
Choose a tag to compare

5.7.0 (2024-05-17)

Changed

  • Changed Phalcon\Support\HelperFactory to use the internal mapper for better memory management #16571

Added

  • New ini setting phalcon.form.strict_entity_property_check for Phalcon\Forms\Form to enable strict entity property checking. #16567

Fixed

  • Fixed Phalcon\Mvc\Cli\Router to extend the Phalcon\Mvc\Cli\RouterInterface #16551
  • Fixed Phalcon\Filter\Validation\Validator\StringLength::validate() to correctly use the include parameter #16560
  • Fixed Phalcon\Db\Column::TYPE_BINARY and Phalcon\Db\Column::TYPE_TINYINTEGER to have unique values #16532
  • Fixed Phalcon\Forms\Form to bind only existing properties on entities, based on phalcon.form.strict_entity_property_check setting. #16567
  • Fixed Phalcon\Filter\Sanitize\BoolVal to correctly handle integers. #16582

Removed

v5.6.2

14 Mar 15:51
888d2b2
Compare
Choose a tag to compare

5.6.2 (2024-03-14)

Changed

  • Changed Phalcon\Mvc\View\Engine\Volt\Compiler::filter to use the helper with upper and lower for UTF-8 characters #16543
  • Changed Phalcon\Di\AbstractInjectionAware to extend stdClass for PHP 8.2 deprecation warnings #16543

v5.6.1

08 Feb 16:57
3e4f2c6
Compare
Choose a tag to compare

5.6.1 (2024-02-08)

Changed

  • Changed Phalcon\Cli\Router::setDefaultAction and Phalcon\Cli\Router::setDefaultModule to return the object back for a fluent interface #16328

Added

Fixed

  • Fixed Phalcon\Db\Adapter\Pdo\Postgresql::describeColumns() to return the correct string back #16371
  • Fixed Phalcon/Filter/Validation::validate() and Phalcon/Filter/Validation/ValidationInterface::validate() to return also bool #16337
  • Fixed Phalcon\Mvc\Model::toArray to ignore getters when the field name is source. #16514
  • Fixed Phalcon\Http\Request::getPut to correctly get form encoded data #16519
  • Fixed deprecation warning in callables Use of "static" in callables is deprecated for PHP 8.2+ #16263

Removed

v5.6.0

09 Jan 22:58
a9f537a
Compare
Choose a tag to compare

5.6.0 (2024-01-09)

Changed

  • Changed Phalcon\Db\Adapter\Pdo\Mysql to not use specific flags for PDO (PDO::ATTR_EMULATE_PREPARES or PDO::ATTR_STRINGIFY_FETCHES) for performance reasons #16474
  • Merged Phalcon\Db\AbstractDb with Phalcon\Db\Adapter\AbstractAdapter since the former was not used #16474

Added

  • Added resetColumns(), resetFrom(), resetWhere(), resetGroupBy(), resetHaving(), resetOrderBy(), resetLimit(), resetFlags() to the Phalcon\Datamapper\Query\AbstractQuery to allow resetting query filters.

Fixed

  • Fixed Phalcon\Mvc\Model::count to ignore the order parameter (needed for Posgresql) #16471
  • Fixed Phalcon\Mvc\Model::toArray added parameter to ignore getters in order not to break serialize. #16490
  • Fixed Phalcon\Mvc\Model::toArray changing the conditionals for population to remove segfault. #16498

v5.5.0

25 Dec 18:04
4d7b819
Compare
Choose a tag to compare

5.5.0 (2023-12-25)

Changed

  • Shifted minimal support from PHP 7.4 to PHP 8.0 #16477
  • Changed Phalcon\Mvc\Model::toArray to use getters if present #16320
  • Adjusted return types identical to original interface int|false in Phalcon\Session\Adapter\*::gc() #16477
  • Changed return type of Phalcon\Config\Adapter\Ini::cast() to mixed #16477

Added

  • Added support for PHP 8.3 #16477

Fixed

  • Fixed Phalcon\Filter\Validation\Validator\Numericality to return false when input has spaces #16461
  • Fixed Phalcon\Mvc\Model\ResultsetSimple::toArray to ignore numeric indexes in case results come as not fetch_assoc #16467

v5.4.0

25 Oct 13:53
37f5eb8
Compare
Choose a tag to compare

5.4.0 (2023-10-25)

Changed

  • Changed Phalcon\Mvc\Model::getMessages() to also filter with an array of fields #16265
  • Changed Phalcon\DataMapper\Query\Select::columns() to accept an array of columns (keys as aliases) instead of func_get_args #16451
  • Changed Phalcon\Html\Helper\AbstractSeries::__invoke() to no longer clear the internal store when called #16441

Added

  • Added the ability to define interpolator characters for the Phalcon\Logger\Formatter\Line #16430
  • Added Phalcon\Html\Helper\AbstractSeries::reset() to clear the internal store when needed #16441

Fixed

  • Model Annotation strategy did not work with empty_string #16426
  • View::reset() sets content to null instead of default empty string #16437
  • Fixed Phalcon\Filter\Validation\Validator\Size\* validators to correctly detect the size of uploaded files #16390

v5.3.1

12 Sep 12:41
485ad1a
Compare
Choose a tag to compare

5.3.1 (2023-09-12)

Fixed

  • Fixed infinite save loop in Phalcon\Mvc\Model::save() #16395
  • Fixed undefined column with columnMap and model caching #16420
  • Fixed memory leak in Phalcon\Mvc\Router::handle() #16431

v5.3.0

15 Aug 19:41
7f5509a
Compare
Choose a tag to compare

Added

  • Added Phalcon\Mvc\Model::appendMessagedFrom for code consistency and to add messages from another model #16391
  • Added Phalcon\Autoload\Loader::isRegistered for debugging purposes #16391
  • Added Phalcon\Mvc\Model\Metadata::initializeMetadata #16393
  • Added Phalcon\Mvc\Model\Metadata::getMetaDataUniqueKey #16393
  • Added Phalcon\Mvc\Model\Metadata::getColumnMapUniqueKey #16393
  • Added Phalcon\Encryption\Security\JWT\Builder::addHeader() to allow adding custom headers #16396

Changed

  • Refactored Phalcon\Mvc\Model::doLowUpdate and Phalcon\Mvc\Model::postSaveRelatedRecords for better code logic and a clearer separation of behaviour, although it lead to partially repeated code. #16391
  • Cleaned Phalcon\Mvc\Model\Metadata::initialize #16393

Fixed

  • Parse multipart/form-data from PUT request #16271
  • Set Dynamic Update by default system-wide #16343
  • Fixed memory leak in Micro application #16404

v5.2.3

26 Jul 17:16
54b3b6b
Compare
Choose a tag to compare

5.2.3 (2023-07-26)

Fixed

  • Tried to reproduce the behavior described in #16244 but had no success. #16244
  • Extended Phalcon\Di\Injectable from stdClass to remove the deprecation warning (dynamic properties) for PHP 8.2 #16308
  • Corrected the return type of Phalcon\Mvc\View::getVar() so that stubs can be accurate. #16276
  • Changed all the encode/decode methods for JSON to use the Phalcon\Support\Helper\Json\* classes. #15608
  • Changed the Phalcon\Support\Helper\Json\* classes to clear up json_last_error() before doing any conversions. #15608
  • Fixed Phalcon\Http\Request::getJsonRawBody to protect from empty body #16373

Added

  • Added getAdapter() in Phalcon\Mvc\Model\Metadata to retrieve the internal cache adapter if necessary. #16244
  • Added Phalcon\Storage\Adapter\Weak implemented with WeakReference has a cache/retrieval solution for objects not yet collected by the Garbage Collection. #16372