The changes of each release that this documentation covers, newest first. The source is CHANGELOG-5.0.md of the repository.
5.4.0 (2023-10-25)
Tools
- Zephir Parser v1.5.3
- Zephir 0.17.0 (development - 9f99da6da)
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 offunc_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 #16444
5.3.1 (2023-09-12)
Tools
- Zephir Parser v1.5.3
- Zephir 0.17.0 (development - 9f99da6da)
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 - Forced
routeIdinPhalcon\Mvc\Router\Routeto always return a string #16414
5.3.0 (2023-08-15)
Tools
- Zephir Parser v1.5.3
- Zephir 0.17.0 (development - 9f99da6da)
Changed
- Refactored
Phalcon\Mvc\Model::doLowUpdateandPhalcon\Mvc\Model::postSaveRelatedRecordsfor better code logic and a clearer separation of behavior, although it lead to partially repeated code. #16391 - Cleaned
Phalcon\Mvc\Model\Metadata::initialize#16393
Added
- Added
Phalcon\Mvc\Model::appendMessagedFromfor code consistency and to add messages from another model #16391 - Added
Phalcon\Autoload\Loader::isRegisteredfor 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
Fixed
- Parse multipart/form-data from PUT request #16271
- Set Dynamic Update by default system-wide #16343
- Fixed memory leak in Micro application #16404
5.2.3 (2023-07-26)
Tools
- Zephir Parser v1.5.3
- Zephir 0.17.0 (development - 9f99da6da)
Added
- Added
getAdapter()inPhalcon\Mvc\Model\Metadatato retrieve the internal cache adapter if necessary. #16244 - Added
Phalcon\Storage\Adapter\Weakimplemented with WeakReference has a cache/retrieval solution for objects not yet collected by the Garbage Collection. #16372
Fixed
- Tried to reproduce the behavior described in #16244 but had no success. #16244
- Extended
Phalcon\Di\InjectablefromstdClassto 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/decodemethods for JSON to use thePhalcon\Support\Helper\Json\*classes. #15608 - Changed the
Phalcon\Support\Helper\Json\*classes to clear upjson_last_error()before doing any conversions. #15608 - Fixed
Phalcon\Http\Request::getJsonRawBodyto protect from empty body #16373
5.2.2 (2023-06-18)
Tools
- Zephir Parser v1.5.3
- Zephir 0.17.0 (development - 9f99da6da)
Fixed
- Fixed
Encryption\Crypt::checkCipherHashIsAvailableto allow proper setting of the hash #16314 - Removed
unlikelyfromifstatements from the Stream storage adapter and Json serializer #16339 - Fixed
Storage\Adapter\Stream::get()/set()to correctly calculate the path if the prefix is present in the key #16348 - Fixed
Html\Helper\Input\Checkboxto correctly process empty values #15959
5.2.1 (2023-02-28)
Tools
- Zephir Parser v1.5.3
- Zephir 0.17.0 (development - 9f99da6da)
Fixed
5.2.0 (2023-02-26)
Tools
- Zephir Parser v1.5.3
- Zephir 0.17.0 (development - 9f99da6da)
Added
- Added support for PHP 8.2 #15973
Fixed
- Fixed
Phalcon\Html\Helper\Title::prependto correctly prepend text in subsequent calls #16283
5.1.4 (2023-01-10)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Fixed
- Fixed
Phalcon\Acl\Adapter\Memory::isAllowedto not use the deprecatedReflectionType::getClass#16255
5.1.3 (2022-12-25)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Fixed
- Fixed
Phalcon\Mvc\Micro::handleto type check an object for thefinish#16240 - Fixed
Phalcon\DI\Service::resolveto not call theget()from the container and cause an infinite loop #15032
5.1.2 (2022-11-30)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Fixed
- Fixed
Phalcon\Support\Debugto correctly calculate the documents URL for the hyperlinks #16223 - Fixed
Phalcon\Html\TagFactorydocblock for autocompletion (https://github.com/phalcon/cphalcon/commit/0129658f3ac468dcc5294d401403e166302a8069) - Fixed
Phalcon\Db\Profilerby correctly calculating the seconds (reapplied changes) #15822 - Added
Phalcon\Html\TagFactoryto thePhalcon\Di\FactoryDefault\Cli#16233
5.1.1 (2022-11-12)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Fixed
- Fixed
Phalcon\Filter::sanitizeto return correct data whennoRecursiveistrue#16199 - Fixed
Phalcon\Html\Escaper::htmlto not returnnullwhen a zero string is passed #16202
5.1.0 (2022-11-01)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Added
- Added
Phalcon\Http\Request::getPatch()to get a value from a PATCH request #16188 - Added
Phalcon\Http\Request::getFilteredPatch()to get a value filtered from a PATCH request #16188 - Added
Phalcon\Http\Request::hasPatch()to check if a value exist in a PATCH request #16188
Fixed
- Fixed
Phalcon\Mvc\View\Engine\Volt\Compiler::isTagFactoryto correctly detect aTagFactoryobject without throwing an error #16097 - Fixed default values for
Phalcon\Cli,Phalcon\DispatcherandPhalcon\Applicationcomponents to ensure notnullvalues are passed to methods #16186 - Fixed
Phalcon\Form::clearto correctly clear the elements and not recurse #15956
5.0.5 (2022-10-24)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Fixed
- Fixed
Phalcon\Config\Config::setDatato pass theinsensitiveflag to child objects #16171 - Fixed
Phalcon\Config\Adapter\Groupped::__constructto pass theinsensitiveflag to child objects #16171 - Fixed
Phalcon\Session\Manager::setName, removing the regex check for the name for custom adapters to work withcreate_sid()#16170 - Fixed
PdoResult::fetchAllwhen passed class name in 2nd argument #16177 - Fixed
Forms\Form::labelto accept an array as a default variable #16180
5.0.4 (2022-10-17)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Fixed
- Fixed
Phalcon\Encryption\Securityto take into account theworkFactorin the cost calculation #16153 - Removed double unserializing during Model caching #16035, #16131
- Fixed
Phalcon\Db\Adapter\Pdo\Mysql::describeIndexesto assign an empty string in the index type ofnulland remove warnings #16157 - Fixed
Phalcon\Db\Adapter\Pdo\Sqlite::describeIndexesto assign an empty string in the index type ofnulland remove warnings #16157 - Fixed
Phalcon\Mvc\Model\Manager::notifyEventto returntrueinstead ofnullon success #16161 - Fixed
Phalcon\Encryption\Security\JWT\Validator::validateExpirationto correctly validate theexpclaim #16166
5.0.3 (2022-10-06)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Changed
- Fixed
Phalcon\Filter\Sanitize\StringValto accept flags forhtmlspecialchars()#16135
Fixed
- Fixed
Phalcon\Html\Escaper::attributes()to honor the$flagsset forhtmlspecialchars()#16134
5.0.2 (2022-09-27)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Fixed
- Fixed
Phalcon\Html\Escaper::attributes()to accept any value and transform it to string #16123 - Fixed
Phalcon\Logger\AbstractLogger::getLevelNumber()to better check for string levels #16123
5.0.1 (2022-09-23)
Added
- Added
Phalcon\Encryption\Security\JWT\Validator::get()andPhalcon\Encryption\Security\JWT\Validator::set()for validation data #16115
Fixed
- Fixed
Phalcon\Encryption\Security\JWT\Token\Token::validate()to correctly call validator methods #16115
5.0.0 (2022-09-22)
Tools
- Zephir Parser v1.5.1
- Zephir 0.16.3 (development - 5099f3453)
Changed
- Changed
Phalcon\Logger\Adapter\Stream::processto open the log file, check for locks, write contents and close the stream #16072 - Changed getters and setters from shorthand format to full methods #16102
- Changed return types to
arrayinPhalcon\Annotations\Reflectionclass methods #16106 - Changed
Phalcon\Html\Escaper::attributes()to also accept an array of attributes #16108
Added
- Added
Phalcon\Encryption\Security\JWT\Token::validate()to validate a token’s claims #16094 - Added
Phalcon\Encryption\Security\JWT\Token::verify()to verify a token’s signature #16094 - Added
Phalcon\Encryption\Security\JWT\Validator::getErrors()to return any errors with the validation as an array #16094
Fixed
- Fixed and improved return type of
object&?object#16023 - Fixed
Phalcon\Filter\Validation\Validator\Digitto use only strings forctype_*calls #16064 - Fixed
Phalcon\Flash\AbstractFlash::outputMessageto return the message (implicitFlush) #16063 - Fixed
Phalcon\Filter\Validation\Validator\Numericalityto correctly detect illegal characters within string numbers #16070 - Fixed segmentation fault on Reflection of
Phalcon\Mvc\Modelclass #16080 - Fixed segmentation fault on Reflection #16096
5.0.0rc4 (2022-08-08)
Tools
- Zephir Parser v1.5.0
- Zephir 0.16.0 (development - 4fac47bac)
Fixed
- Reverted to single quotes when volt code generates PHP code.
- Any
taghelpers only accept parameters with double quotes - Renamed
Phalcon\Tag::form()toPhalcon\Tag::formLegacy(helperform_legacy) #16019 - Fixed
Phalcon\Cli\Router::getMatchedRoute()Phalcon\Cli\RouterInterface::getMatchedRoute()Phalcon\Mvc\Router::getMatchedRoute()Phalcon\Mvc\RouterInterface::getMatchedRoute()to returnRouterInterfaceornull#16030
- Fixed
Phalcon/Storage/Serializer/Base64::unserialize()Phalcon/Storage/Serializer/Igbinary::unserialize()Phalcon/Storage/Serializer/Igbinary::serialize()Phalcon/Storage/Serializer/Php::unserialize()to reset isSuccess value #16040
- Fixed
Phalcon\Paginator\Adapter\Model::paginate()fix group parameter breaking total items #16042 - Fixed
Phalcon\Mvc\Model::doLowUpdate()prevent RawValue getting overwritten #16037 - Refactored
Phalcon\Image\*- Reorganized code in the image adapters
- Simplified various areas, speeding up processing
- Removed
getInternalImImage()(same asgetImage()) forPhalcon\Image\Adapter\Imagick - Added better support for webm images #15977
5.0.0rc3 (2022-07-12)
Tools
- Zephir Parser v1.5.0
- Zephir 0.16.0 (development - 4fac47bac)
Added
- Added support for
webpimages forPhalcon\Image\Adapter\Gd#15977 - Added
Phalcon\Mvc\Model\ManagerInterface::getBuilder()to return the existing builder (created bycreateBuilder()) #15966 - Added
Phalcon\Mvc\Model\Manager::getBuilder()to return the existing builder (created bycreateBuilder()) #15966
Fixed
- Fixed
Phalcon\Tag::textArea()to check if the value isnullbefore callinghtmlspecialchars#15992 - Fixed
Phalcon/Filter/Validation/Validator/AlnumPhalcon/Filter/Validation/Validator/AlphaPhalcon/Filter/Validation/Validator/ConfirmationPhalcon/Filter/Validation/Validator/CreditCardPhalcon/Filter/Validation/Validator/StringLength/MaxPhalcon/Filter/Validation/Validator/StringLength/Minto check if the value isnullbefore calling internal PHP methods #15992
- Fixed
Phalcon\Html\Helper\Titleto properly use indent and delimiter #15984 - Fixed
Phalcon\Html\Helper\Doctypeto properly use indent and delimiter #15984 - Fixed
Phalcon\Mvc\View\Engine\Volt::isIncluded()andPhalcon\Mvc\View\Engine\Volt::length()to check for null values before calls to php methods #15984 - Fixed
Phalcon\Mvc\View\Engine\Volt\Compiler::expression()to use double quotes instead of single ones #15984 - Fixed
Phalcon\Support\Version::getPart()to always return string values #15984 - Fixed
Phalcon\Dispatcher\DispatcherInterface::setModuleName()to acceptnull#15997 - Fixed
Phalcon\Dispatcher\AbstractDispatcher::setModuleName()to acceptnull#15997 - Fixed
Phalcon\Dispatcher\AbstractDispatcher::getModuleName()to also returnnull#15997
5.0.0rc2 (2022-06-09)
Tools
- Zephir Parser v1.5.0
- Zephir 0.16.0 (development - 4fac47bac)
Changed
- Changed the
StringValfilter to now usehtmlspecialchars()#15978
Added
- Added
StringValLegacyfilter usingfilter_var()for PHP < 8.1 #15978
Fixed
- Fixed
Phalcon\Http\Response::getQualityHeader()to check if the server variable isnullbefore performingpreg_split#15984
5.0.0rc1 (2022-05-31)
Tools
- Zephir Parser v1.5.0
- Zephir 0.16.0 (development - 4fac47bac)
Changed
- Changed
Phalcon\Session\Bag::__construct()to accept aPhalcon\Session\Manageras the first parameter andnameas the second one #15904 - Changed
Phalcon\Logger\Loggerto no longer depend on PSR interfaces #15925 - Changed
Phalcon\Cache\Cacheto no longer depend on PSR interfaces #15927 - Changed
Phalcon\Html\Linkto no longer depend on PSR interfaces #15930
Added
- Added
Phalcon\Encryption\Crypt::isValidDecryptLength($input)to allow checking for the length of the decryption string #15879 - Added
Phalcon\Di\InitializationAwareInterfaceto allow auto calling theinitializemethod when accessing service through DIC #15916 - Added
Phalcon\Storage\Serializer\MemcachedIgbinaryPhalcon\Storage\Serializer\MemcachedJsonPhalcon\Storage\Serializer\MemcachedPhpPhalcon\Storage\Serializer\RedisIgbinaryPhalcon\Storage\Serializer\RedisJsonPhalcon\Storage\Serializer\RedisMsgpackPhalcon\Storage\Serializer\RedisNonePhalcon\Storage\Serializer\RedisPhpto be used if adapter serialization is required #15904
- Added
Phalcon\Logger\LoggerInterfacePhalcon\Logger\AbstractLoggerto be used in the logger class but also the proxy-psr3 repo #15925
- Added
Phalcon\Cache\CacheInterfacePhalcon\Cache\AbstractCacheto be used in the cache class but also the proxy-psr16 repo #15927
- Added
Phalcon\Html\Link\Interfaces\EvolvableLinkInterfacePhalcon\Html\Link\Interfaces\EvolvableLinkProviderInterfacePhalcon\Html\Link\Interfaces\LinkInterfacePhalcon\Html\Link\Interfaces\LinkProviderInterfacePhalcon\Html\Link\AbstractLinkPhalcon\Html\Link\AbstractLinkProviderto be used in the link class but also the proxy-psr13 repo #15930
- Added
Phalcon\Translate\Adapter\Csv::toArray()andPhalcon\Translate\Adapter\NativeArray::toArray()to return the translation array back #15902
Fixed
- Fixed
Phalcon\Html\Helper\Input\Numericto produce correct elements #15896 - Fixed
Phalcon\Storage\Adapter\*to correctly storenullvalues #15904
Removed
- Removed
Phalcon\Container\Containerand moved its contents to theproxy-psr11repo #15928 - Removed
Phalcon\Http\Message\*andPhalcon\Http\Server\*classes. This removes PSR from Phalcon. PSR-7 available in v6 #15929
5.0.0beta3 (2022-02-06)
Changed
- Renamed
Phalcon\Db\Result\PdotoPhalcon\Db\Result\PdoResultto avoid collisions with\PDO#15874 [doc] - Moved
Phalcon\ValidationtoPhalcon\Filter\Validation
Added
- Added
Phalcon\Html\Helper\Title:setSeparatorto allow setting the separator independently #15866
Fixed
- Fixed
Phalcon\Logger\AbstractAdapter::getFormattedItem()to not addPHP_EOLat the end of the message and added it to thePhalcon\Logger\Adapter\Stream#14547 - Fixed
Phalcon\Html\Helper\Title:__invoke()to not use the$separatoras parameter - no need to redefine it in a view #15866 - Fixed the delimiters for
Phalcon\Support\Helper\SnakeCaseandPhalcon\Support\Helper\KamelCase#15850 - Fixed
Phalcon\Mvc\Router\Route::getName()andPhalcon\Mvc\Router\Route::getHostname()to also returnnull#15880 - Fixed
Phalcon\Mvc\Router\RouteInterface::getName()andPhalcon\Mvc\Router\RouteInterface::getHostname()to also returnnull#15880 - Fixed
Phalcon\Mvc\Model::findFirst()to returnmixedornull#15883 - Fixed
Phalcon\Mvc\Model::belongsTo()parameteroptionsarray by default #15971 - Fixed
Phalcon\Mvc\Model::hasMany()parameteroptionsarray by default #15971 - Fixed
Phalcon\Mvc\Model::hasOne()parameteroptionsarray by default #15971 - Fixed
Phalcon\Mvc\Model::hasOneThrough()parameteroptionsarray by default #15971 - Fixed
Phalcon\Mvc\Model\Manager::addHasMany()parameteroptionsarray by default #15971 - Fixed
Phalcon\Mvc\Model\Manager::addHasManyToMany()parameteroptionsarray by default #15971 - Fixed
Phalcon\Mvc\Model\Manager::addHasOne()parameteroptionsarray by default #15971 - Fixed
Phalcon\Mvc\Model\Manager::addHasOneThrough()parameteroptionsarray by default #15971 - Fixed
Phalcon\Mvc\Model\Manager::addBelongsTo()parameteroptionsarray by default #15971
5.0.0beta2 (2022-01-06)
Added
- Added
Phalcon\Support\Helper\Str\KebabCase,Phalcon\Support\Helper\Str\PascalCaseandPhalcon\Support\Helper\Str\SnakeCasehelpers #15850
Fixed
Phalcon\Mvc\View\Engine\Volt\Compiler::functionCall()to check for container presence before checking thetagservice #15842Phalcon\Di\FactoryDefault()to setassetsandtagas shared services #15847Phalcon\Forms\Element\AbstractElement::getLocalTagFactory()to return the tagFactory from itself, the form, the DI or a new instance #15847 [doc]- Changed references to
sha1withhash("sha256", $data)to ensure that there are no collisions from the hashing algorithm #15844 - Changed
Phalcon\Support\Helper\Str\Camelizeto accept a third boolean parameter indicating whether the result will have the first letter capitalized or not #15850
5.0.0beta1 (2021-12-24)
Changed
- Marked as deprecated:
Phalcon\Mvc\Model::existsBelongsTo()Phalcon\Mvc\Model::existsHasMany()Phalcon\Mvc\Model::existsHasOne()Phalcon\Mvc\Model::existsHasOneThrough()Phalcon\Mvc\Model::existsHasManyToMany()Phalcon\Translate\Adapter\Csv::exists()Phalcon\Translate\Adapter\Gettext::exists()Phalcon\Translate\Adapter\NativeArray::exists()#15785
- Moved
Phalcon\ContainertoPhalcon\Container\Container#15796 - Changed the
Phalcon\Support\Collection::get()to return the default value if the key does not exist or the value isnullto mirror the behavior of v3. #15370 - Moved
Phalcon\RegistrytoPhalcon\Support\Registry#15802 - Moved
Phalcon\UrltoPhalcon\Mvc\Url#15798 - Moved
Phalcon\LoadertoPhalcon\Autoload\Loader#15797 - Changes to
Phalcon\Autoload\Loader:- Renamed
registerClasses()tosetClasses() - Renamed
registerDirectories()tosetDirectories() - Renamed
registerExtensions()tosetExtensions() - Renamed
registerFiles()tosetFiles() - Renamed
registerNamespaces()tosetNamespaces()#15797
- Renamed
- Moved
Phalcon\DitoPhalcon\Di\Di#15799 - Removed references to
Phalcon\Tagfrom the framework in favor ofPhalcon\Html\TagFactory#15801 Phalcon\Forms\Formrequires aPhalcon\Html\TagFactoryto be set before it can render elements #15801Phalcon\Di\FactoryDefaultwill now return aPhalcon\Html\TagFactoryfor thetagservice #15801
Added
- Added:
Phalcon\Mvc\Model::hasBelongsTo()Phalcon\Mvc\Model::hasHasMany()Phalcon\Mvc\Model::hasHasOne()Phalcon\Mvc\Model::hasHasOneThrough()Phalcon\Mvc\Model::hasHasManyToMany()Phalcon\Translate\Adapter\Csv::has()Phalcon\Translate\Adapter\Gettext::has()Phalcon\Translate\Adapter\NativeArray::has()#15785
- Added
filter,camelize,dynamicanduncamelizeinPhalcon\Support\HelperFactory#15805 - Added
Phalcon\Autoload\Loader::getDebug()to collect debugging information from the loader (enabled from the constructor) #15797
Fixed
Phalcon\Logger\LoggerFactory::load()to correctly use the key of the adapters array as the name of the adapter #15831- Fixed
Phalcon\Dispatcher\Dispatcher::setParams()not updating local params duringdispatch()loop #15603 - Fixed related records auto-save with
belongsTo()relation #15148
Removed
- Removed
Phalcon\Exception; replaced by\Exception#15800
5.0.0alpha7 (2021-11-16)
Changed
- Changes to the
Phalcon\Acl:- Renamed
Phalcon\Acl\ComponentAwaretoPhalcon\Acl\ComponentAwareInterface - Renamed
Phalcon\Acl\RoleAwaretoPhalcon\Acl\RoleAwareInterface#15691
- Renamed
- Changed
requiretorequire_onceinPhalcon\Loaderto avoid conflicts with other loaders #15489 - Changed
requiretorequire_onceinPhalcon\Cli\ConsoleandPhalcon\Mvc\Applicationfor a bit of extra performance #15489 Phalcon\Collectionhas been moved under theSupportnamespace:- Renamed
Phalcon\CollectiontoPhalcon\Support\Collection - Renamed
Phalcon\Collection\ExceptiontoPhalcon\Support\Collection\Exception - Renamed
Phalcon\Collection\ReadOnlytoPhalcon\Support\Collection\ReadOnly - Renamed
Phalcon\CollectiontoPhalcon\Support\Collection#15700
- Renamed
- Changes to
Phalcon\Session\Bag:- Changed
Phalcon\Session\Bag::constructto accept a container instead of internally calling the default - Changed
Phalcon\Session\Bag::constructto throw an exception if the container is not specified - Changed
Phalcon\Session\Bag::initto store the data in the session #15494
- Changed
- Changed
Phalcon\Events\Event::construct()to allowsourceto be nullable #15133 - Changes to
Phalcon\Crypt- Moved
Phalcon\Crypt\ExceptiontoPhalcon\Crypt\Exception\Exception - Moved
Phalcon\Crypt\MismatchtoPhalcon\Crypt\Exception\Mismatch - Changed the ccm/gcm modes to store the
authTagwith the encryption string and process it with the decryption string #15717
- Moved
- Created new namespace
Phalcon\Encryption- Moved
Phalcon\CrypttoPhalcon\Encryption\Crypt - Moved
Phalcon\SecuritytoPhalcon\Encryption\Security - Moved the whole
Securitynamespace underEncryptionSecurity\JWT\Exceptions\UnsupportedAlgorithmExceptiontoEncryption\Security\JWT\Exceptions\UnsupportedAlgorithmExceptionSecurity\JWT\Exceptions\ValidatorExceptiontoEncryption\Security\JWT\Exceptions\ValidatorExceptionSecurity\JWT\Signer\AbstractSignertoEncryption\Security\JWT\Signer\AbstractSignerSecurity\JWT\Signer\HmactoEncryption\Security\JWT\Signer\HmacSecurity\JWT\Signer\NonetoEncryption\Security\JWT\Signer\NoneSecurity\JWT\Signer\SignerInterfacetoEncryption\Security\JWT\Signer\SignerInterfaceSecurity\JWT\Token\AbstractItemtoEncryption\Security\JWT\Token\AbstractItemSecurity\JWT\Token\EnumtoEncryption\Security\JWT\Token\EnumSecurity\JWT\Token\ItemtoEncryption\Security\JWT\Token\ItemSecurity\JWT\Token\ParsertoEncryption\Security\JWT\Token\ParserSecurity\JWT\Token\SignaturetoEncryption\Security\JWT\Token\SignatureSecurity\JWT\Token\TokentoEncryption\Security\JWT\Token\TokenSecurity\JWT\BuildertoEncryption\Security\JWT\BuilderSecurity\JWT\ValidatortoEncryption\Security\JWT\ValidatorSecurity\JWT\ValidatortoEncryption\Security\JWT\ValidatorSecurity\ExceptiontoEncryption\Security\ExceptionSecurity\RandomtoEncryption\Security\Random#15729
- Moved
- Renamed
Phalcon\Crypt\Crypt::getHashAlgo()toPhalcon\Crypt\Crypt::getHashAlgorithm()Phalcon\Crypt\Crypt::getAvailableHashAlgos()toPhalcon\Crypt\Crypt::getAvailableHashAlgorithms()Phalcon\Crypt\Crypt::setHashAlgo()toPhalcon\Crypt\Crypt::setHashAlgorithm()#15717
- Renamed
Phalcon\Factory\AdapterFactory::getAdapters()toPhalcon\Factory\AdapterFactory::getServices()#15717 - Changed
Phalcon\Crypt\Crypt::__construct()to haveuseSigningset totrueby default #15717 - Changes to
Phalcon\Config- Moved
Phalcon\ConfigtoPhalcon\Config\Config - Changed
Phalcon\Config\Config::pathby making thedelimiterparameter astring - Changed
Phalcon\Config\Adapter\Ini::__constructto not acceptnullas the mode. The default is nowINI_SCANNER_NORMAL(2) - Refactored the code for more efficiency and speed #15720
- Moved
- Changed
Phalcon\Db\Adapter\AdapterInterface::getInternalHandler()andPhalcon\Db\Adapter\Pdo\AbstractPdo::getInternalHandler()to returnvarinstead of\PDOfor custom adapters with different engines #15119 - Moved
Phalcon\FiltertoPhalcon\Filter\Filter; added more tests #15726 - Changed
Phalcon\Mvc\Model::getPreparedQuery()to returnQueryInterfaceinstead ofQuery#15562 - Moved
Phalcon\CachetoPhalcon\Cache\Cache#15728 - Changed
Phalcon\Factory\AdapterFactoryto define the factory exception ingetExceptionClass()instead of a property. #15728 - Renamed
Phalcon\Db\Adapter\AbstractAdapter::getSqlVariables()toPhalcon\Db\Adapter\AbstractAdapter::getSQLVariables()to align with the rest of thegetSQL*methods #15637 - Moved
Phalcon\LoggertoPhalcon\Logger\Logger#15727 - Changes to
Phalcon\Escaper- Moved
Phalcon\EscapertoPhalcon\Html\Escaper - Moved
Phalcon\Escaper\EscaperInterfacetoPhalcon\Html\Escaper\EscaperInterface - Moved
Phalcon\Escaper\ExceptiontoPhalcon\Html\Escaper\Exception - Deprecated methods (to be removed at a future version)
escapeCss()becomescss()escapeJs(), becomesjs()escapeHtml()becomeshtml()escapeHtmlAttr()becomesattributes()escapeUrl()becomesurl()setHtmlQuoteType()becomessetFlags()#15757
- Moved
- Changed
Phalcon\Encryption\Security::hash()to also usepassword_hash()and acceptARGON2*algorithms #15731 - Removed uncamelize of
realClassNameinPhalcon\Mvc\Router\Route::getRoutePaths()if definition is string to make processing same as if array definition #15067 - Changed
Phalcon\Validation::getValue()behavior to get value fromdataif not found inentity. #14203 - Changed
Phalcon\Forms\Form::isValid()signature: addedwhitelistargument. #14203 - Changed
Phalcon\Support\Collection\ReadOnlytoPhalcon\Support\Collection\ReadOnlyCollectionto avoid conflicts with the read-only feature in PHP 8.1 #15767 - Removed
Phalcon\Text- replaced byPhalcon\Support\Helper\Str\*#15776 - Removed
Phalcon\Helper\Arr- replaced byPhalcon\Support\Helper\Arr\*#15776 - Removed
Phalcon\Helper\File- replaced byPhalcon\Support\Helper\File\*#15776 - Removed
Phalcon\Helper\Json- replaced byPhalcon\Support\Helper\Json\*#15776 - Removed
Phalcon\Helper\Number- replaced byPhalcon\Support\Helper\Number\*#15776 - Removed
Phalcon\Helper\Str- replaced byPhalcon\Support\Helper\Str\*#15776 - Removed references to
Phalcon\Text,Phacon\Helper\*from the code replacing it withPhalcon\Support\Helper\*#15776 - Synchronized tests with
phalcon/phalconthus increasing coverage #15776 - Changed
Phalcon\Assets\Managerto require aPhalcon\Html\TagFactoryin its constructor #15776
Added
- Added more tests in the suite for additional code coverage #15691
- Added
Phalcon\Events\AbstractEventsAwareclass to handle the Events Manager when necessary #15691 - Added
Phalcon\Acl\Adapter\AdapterInterface::getInheritedRoles()andPhalcon\Acl\Adapter\Memory::getInheritedRoles()that returns the inherited roles based on a passed role name (or all if no parameter supplied) #15154 - Changes to
Phalcon\Crypt- Added
Phalcon\Crypt\Padding\PadIntefaceand padding adaptersPhalcon\Crypt\Padding\AnsiPhalcon\Crypt\Padding\Iso10126Phalcon\Crypt\Padding\IsoIekPhalcon\Crypt\Padding\NoopPhalcon\Crypt\Padding\PadInterfacePhalcon\Crypt\Padding\Pkcs7Phalcon\Crypt\Padding\SpacePhalcon\Crypt\Padding\Zero
- Added
Phalcon\Crypt\PadFactoryto easily create padding adapters - Added more tests increasing coverage #15717
- Added
- Added
Phalcon\Cache\Adapter\*::setForever()andPhalcon\Storage\Adapter\*::setForever()to allow storing a key forever #15485 - Added
Phalcon\Encryption\Security::getHashInformation()to return information for a hash #15731 - Added constants
Phalcon\Encryption\Security::CRYPT_ARGON2IandPhalcon\Encryption\Security::CRYPT_ARGON2ID#15731 - Added
allowEmptychecks to common validators #15515 - Added
Phalcon\Forms\Form::getFilteredValue()to get filtered value without providing entity #15438 - Added
Phalcon\Forms\Form::setWhitelist()andPhalcon\Forms\Form::getWhitelist()#14203 - Added
dirtyStateserialization inPhalcon\Mvc\Model#15571 - Added short versions of helpers for
Phalcon\Html\TagFactory(call service as a method) #15776 - Added short versions of helpers for
Phalcon\Support\HelperFactory(call service as a method) #15776 - Added
Phalcon\Html\Helper\Doctypehelper fordoctypegeneration #15776 - Added
styleorlinktag option forPhalcon\Html\Helper\Style#15776
Fixed
- Fixed
Query::getExpression()return type #15553 - Fixed
Phalcon\Mvc\Model::getRelated()to correctly return relationships (cached or not) when the foreign key has changed #15649 [doc] - Fixed
Phalcon\Db\Adapter\Pdo\*,Phalcon\Mvc\ModelandPhalcon\Mvc\Model\MetaData\Strategy\Annotationsto treatBIGINTnumbers as string #15632 - Fixed
Phalcon\Crypt\Crypt::decrypt()to correctly calculate the hash when using signed mode #15717 - Fixed
Phalcon\Mvc\Model\Manager::isVisibleModelProperty()to correctly check if setting property is visible #15276 - Fixed
Phalcon\Config\Config::mergeto retain numeric indexes in deep merges #14705 - Fixed globals (Zephir change) to correctly display string values for global settings in
phpinfo()#15269 - Fixed
Phalcon\Storage\Adapter\Redis::getAdapter()andPhalcon\Cache\Adapter\Redis::getAdapter()to accept the connection timeout in the constructoroptions#15744 - Fixed
Phalcon\Db\Adapter\AbstractAdapter::getSQLVariables()to return an empty array when initialized #15637 - Fixed
Phalcon\Cache\Adapter\*andPhalcon\Storage\Adapter\*to delete a key whenset()is called with a zero or negative TTL #15485 - Fixed
Phalcon\Db\Adapter\Pdo\Mysqlto not usePDO::ATTR_EMULATE_PREPARESandPDO::ATTR_STRINGIFY_FETCHESby default. This allows numbers to be returned with resultsets instead of strings for numeric fields #15361 - Fixed
Phalcon\Validation\Validator\Fileto usemessageFileEmpty#14928 - Fixed
Phalcon\Db\RawValueusage bugs inPhalcon\Mvc\Model::doLowUpdate()#15413 - Fixed
typeattribute for stylesheet links #15776 - Fixed
Phalcon\Debugto not throw an exception if a URL service is not present #15381
Removed
- Removed
Phalcon\Kernel- obsolete #15776
5.0.0alpha6 (2021-09-16)
Changed
- Adjusted the constructor for
Phalcon\Storage\Adapter\*andPhalcon\Cache\Adapter\*to allow an empty key prefix to be set if needed. #15480 - Changed:
Phalcon\Db\Adapter\AdapterInterface:lastInsertId()to be identical asPdo:lastInsertId()Phalcon\Db\Adapter\AdapterInterface:close()now returnsvoidinstead ofboolPhalcon\Db\Adapter\AdapterInterface:connect()now returnsvoidinstead ofbooland 1st argument default value is emptyarrayinstead ofnull#15659
Added
- Added
Phalcon\Security\JWT\Builder::addClaimfor custom JWT claims. #15656 - Added
Phalcon\Support\Helpernamespace:- Added
Phalcon\Support\HelperFactory, a handy factory to help with string, array and other manipulations - Added
helperservice inPhalon\Di\FactoryDefaultandPhalcon\Di\FactoryDefault\Clito point to thePhalcon\Support\HelperFactory - Added array manipulation classes:
Phalcon\Support\Helper\Arr\BlacklistPhalcon\Support\Helper\Arr\ChunkPhalcon\Support\Helper\Arr\FirstPhalcon\Support\Helper\Arr\FirstKeyPhalcon\Support\Helper\Arr\FlattenPhalcon\Support\Helper\Arr\GetPhalcon\Support\Helper\Arr\GroupPhalcon\Support\Helper\Arr\HasPhalcon\Support\Helper\Arr\IsUniquePhalcon\Support\Helper\Arr\LastPhalcon\Support\Helper\Arr\LastKeyPhalcon\Support\Helper\Arr\OrderPhalcon\Support\Helper\Arr\PluckPhalcon\Support\Helper\Arr\SetPhalcon\Support\Helper\Arr\SliceLeftPhalcon\Support\Helper\Arr\SliceRightPhalcon\Support\Helper\Arr\SplitPhalcon\Support\Helper\Arr\ToObjectPhalcon\Support\Helper\Arr\ValidateAllPhalcon\Support\Helper\Arr\ValidateAnyPhalcon\Support\Helper\Arr\Whitelist
- Added file manipulation classes:
Phalcon\Support\Helper\File\Basename
- Added JSON manipulation classes:
Phalcon\Support\Helper\Json\Encode[doc]Phalcon\Support\Helper\Json\Decode
- Added number manipulation classes:
Phalcon\Support\Helper\Number\IsBetween
- Added array manipulation classes:
Phalcon\Support\Helper\Str\CamelizePhalcon\Support\Helper\Str\ConcatPhalcon\Support\Helper\Str\CountVowelsPhalcon\Support\Helper\Str\DecapitalizePhalcon\Support\Helper\Str\DecrementPhalcon\Support\Helper\Str\DirFromFilePhalcon\Support\Helper\Str\DirSeparatorPhalcon\Support\Helper\Str\DynamicPhalcon\Support\Helper\Str\EndsWithPhalcon\Support\Helper\Str\FirstBetweenPhalcon\Support\Helper\Str\FriendlyPhalcon\Support\Helper\Str\HumanizePhalcon\Support\Helper\Str\IncludesPhalcon\Support\Helper\Str\IncrementPhalcon\Support\Helper\Str\InterpolatePhalcon\Support\Helper\Str\IsAnagramPhalcon\Support\Helper\Str\IsLowerPhalcon\Support\Helper\Str\IsPalindromePhalcon\Support\Helper\Str\IsUpperPhalcon\Support\Helper\Str\LenPhalcon\Support\Helper\Str\LowerPhalcon\Support\Helper\Str\PrefixPhalcon\Support\Helper\Str\RandomPhalcon\Support\Helper\Str\ReduceSlashesPhalcon\Support\Helper\Str\StartsWithPhalcon\Support\Helper\Str\SuffixPhalcon\Support\Helper\Str\UcwordsPhalcon\Support\Helper\Str\UncamelizePhalcon\Support\Helper\Str\UnderscorePhalcon\Support\Helper\Str\Upper#15738
- Added
5.0.0alpha5 (2021-09-09)
Changed
- Merged all architectures (
build/phalcon/32bits,build/phalcon/64bitsandbuild/phalcon/safe) into single universal insidebuild/phalcon#15647
Fixed
- Fixed C code in
build/directory #15647
5.0.0alpha4 (2021-09-05)
Changed
- Changed
composer.jsonto use PSR 1.1.x #15504 - Changed
Phalcon\Di\Injectable:getDI()to set default DI when no DI is set #15629
Added
- Added
Phalcon\Flash\Direct::setCssIconClassesandPhalcon\Flash\Session::setCssIconClassesto allow setting icons in the flash messages (bootstrap related) #15292 - Added
Phalcon\Http\Message\RequestMethodInterfaceandPhalcon\Http\Message\ResponseStatusCodeInterfacethat contain constants to be used for any HTTP implementations (see PHP-FIG) #15615
Fixed
- Fixed
Phalcon\Containerinterface to abide withPsr\Container\ContainerInterfaceafter the upgrade to PSR 1.1.x #15504 - Fixed
Phalcon\Forms\Formwhen no entity is passed with isValid(), it uses the entity set in the form #15567 - Fixed
Phalcon\Logger\Adapter\*to not allow serialization of the object. Added an exception when destroying the object while in transaction mode #15638
5.0.0alpha3 (2021-06-30)
Changed
- Changed version format to allow alpha/beta/RC releases on PECL.
- Changed:
Phalcon\Mvc\Model\Resultset\Complex::__constructnow acceptsPsr\SimpleCache\CacheInterfacefor the cachePhalcon\Mvc\Model\Resultset\Simple::__constructnow acceptsPsr\SimpleCache\CacheInterfacefor the cachePhalcon\Mvc\Model\Resultset::__constructnow acceptsPsr\SimpleCache\CacheInterfacefor the cachePhalcon\Mvc\Model\Resultset::getCachenow returnsPsr\SimpleCache\CacheInterface#15471
- Changed
Phalcon\Db\Adapter\AbstractAdapter:delete()signature of optional parameters. #15363 - Changed
bindCountsargument to array type in:Phalcon\Db\Dialect:getColumnList()Phalcon\Db\Dialect:getSqlColumn()Phalcon\Db\Dialect:getSqlExpression()Phalcon\Db\Dialect:getSqlExpressionBinaryOperations()Phalcon\Db\Dialect:getSqlExpressionCase()Phalcon\Db\Dialect:getSqlExpressionCastValue()Phalcon\Db\Dialect:getSqlExpressionConvertValue()Phalcon\Db\Dialect:getSqlExpressionFunctionCall()Phalcon\Db\Dialect:getSqlExpressionGroupBy()Phalcon\Db\Dialect:getSqlExpressionHaving()Phalcon\Db\Dialect:getSqlExpressionJoins()Phalcon\Db\Dialect:getSqlExpressionLimit()Phalcon\Db\Dialect:getSqlExpressionList()Phalcon\Db\Dialect:getSqlExpressionObject()Phalcon\Db\Dialect:getSqlExpressionOrderBy()Phalcon\Db\Dialect:getSqlExpressionScalar()Phalcon\Db\Dialect:getSqlExpressionUnaryOperations()Phalcon\Db\Dialect:getSqlExpressionWhere()Phalcon\Db\DialectInterface:getSqlExpression()
Fixed
- Fixed
Phalcon\Db\Adapter\AbstractAdapter:delete()whenbindTypesargument is passed. #15363 - Fixed
Phalcon\Storage\Adapter\Redis::getAdapterto use passedconnectionTimeout,retryIntervalandreadTimeoutoptions for the connection #15484 - Fixed
Phalcon\Mvc\View\Engine\Volt\Compilerfor a use case when a block will return null vs an array forstatementListin PHP 8 #15556
5.0.0-alpha.2 (2021-05-05)
Changed
- Changed
Phalcon\Translate\Adapter\Gettext::setLocalesignature to allow the category and an array of locales #14764 Phalcon\Versionis now moved toPhalcon\Support\Version_getSpecialVersionand_getVersionhave been removed (marked deprecated in v4)- The class is no longer static; it has to be instantiated first
- References to
Phalcon\Debugand the Volt compiler have been adjusted #15422
Phalcon\Debugis now moved toPhalcon\Support\Debug; CSS/JS references updated #14817- Changed the logging names types to uppercase #15375
- Changes to the
Phalcon\Logger:- Renamed
Phalcon\Logger\Item::getNametoPhalcon\Logger\Item::getLevelName - Renamed
Phalcon\Logger\Item::getTypetoPhalcon\Logger\Item::getLevel - Changed the logger timestamp to be
DateTimeImmutableon a per item basis - more accurate timing - Changed
Phalcon\Loggerto accept aDateTimeZonein the constructor - Changed placeholder
%type%to%level%to align with the variables #15411
- Renamed
- Changed
Phalcon\Mvc\Model::getSchema(),Phalcon\Mvc\ModelInterface::getSchema(),Phalcon\Mvc\Model\Manager::getModelSchema()Phalcon\Mvc\Model\ManagerInterface::getModelSchema()to returnstring | nullso as to abide with the latest Zephir #15411 - Changed the interpolation for the formatters to use the
Phalcon\Support\Helper\Str\Interpolate#15411 - Changed the exceptions thrown from factories to be more specific to their namespaces vs. the Factory generic one #15411
- Changed
Phalcon\Mvc\Model\ManagerInterface:getRelationByAlias()return type fromRelation|booltoRelationInterface|bool#15343 - Changed
Phalcon\Paginator\Repository:getItems()return type fromarraytoResultsetInterface#15074
Added
- Added
BINARYandVARBINARYsupport for Phalcon\Db\Adapter\Mysql #14927 - Added
Phalcon\Db\Profiler\Item::getTotalElapsedNanoseconds()andPhalcon\Db\Profiler\Item::getTotalElapsedMilliseconds()for more precision #15249 - Added
Phalcon\Http\Response\Cookies::isSent()andPhalcon\Http\Response\Headers::isSent(); Added logic to not send the headers or cookies twice. #15334 - Added
Phalcon\Validation\Validator\File\AbstractFile::checkIsUploadedFile()method to allow overriding when adding files to the$_FILESarray directly (not uploading). #15051 - Added
Phalcon\Support\Helper\Str\Interpolateto be used throughout the code for interpolation (Logger/Translator)%type%to%level%to align with the variables #15411 - Added
Phalcon\Support\HelperFactoryfor an easier creation/access of helpers #15411
Fixed
- Corrected the
Phalcon\Db\Profiler\Itemcalculation for seconds #15249 - Corrected
Phalcon\Http\Message\ServerRequestFactoryto populate with superglobals #15286 - Corrected
Phalcon\Mvc\Model\Query\BuilderInterface::orderByto usevarinstead ofstring#15415 - Corrected
Phalcon\Db\Adapter\Pdo\AbstractPdo::connectto take into account thepersistentoption for relevant connections #15241 - Corrected
Phalcon\Image\Adapter\Gd::processTextto correctly callimagettfbboxwhen a font is specified #15188 - Corrected
Phalcon\Cacheto cast keys as strings before sending them to adapters #15249 - Binding form values with specified whitelist #15070
5.0.0-alpha.1 (2021-03-31)
Fixed
- Support for PHP 7.4 and PHP 8.0
- Fixed
Logger\Log::log()logto recognize all log levels #15214 - Changed
setClaimsto be protected so that thePhalcon\Security\JWT\Builderclass can be properly extended. #15322 - Fixed
Phalcon\Mvc\Model::average()to returnfloatvalue when isstring#15287 - Fixed
Phalcon\Storage\Serializer\Igbinaryto storeis_numericandboolvalues properly #15240 - Fixed
Phalcon\Validation\Validator\Confirmationwas failing to compare cases such as 000123 = 123 #15347 - Fixed
Phalcon\Storage\Adapterfailing to retrieve empty like stored data (such as [], 0, false) 15125 - Fixed declarations for
function getEventsManager()to allow null return 15010 - Removed underscore from method names (starting) to abide with PSR-12 15345
- Fixed
Phalcon\Flash\Session::has()to properly check if any messages are existing 15204 - Fixed signature of
Phalcon\Forms\Element\Select::__construct() - Fixed signature of
Phalcon\Assets\Manager::addCss() - Fixed signature of
Phalcon\Assets\Manager::addJs() - Fixed signature of
Phalcon\Db\Adapter\AdapterInterface::execute(),Phalcon\Db\Adapter\AdapterInterface::fetchOne()andPhalcon\Db\Adapter\AdapterInterface::query() - Fixed
Phalcon\Annotations\Reader::parse()to return constants annotations #15919 - Added
Phalcon\Annotations\Reflection::getConstantsAnnotations()method that returns constants annotations #15919 - Changes to the
Phalcon\Annotations\Adapter\AdapterInterface:- Added
getConstant()method that returns class constant annotations collection - Added
getConstants()method that returns class constants annotations array list
- Added