The changes of each release that this documentation covers, newest first. The source is CHANGELOG.md of the repository.
6.0.0 (2026-11-28)
Changed
- A callback that cannot be called throws
TypeErrorinstead of a warning andnull, the same as cphalcon with Zephir 1.9.0. #17766 - Faster ACL build in
Phalcon\Acl\Adapter\Memory. #17701 - Faster HTML output of the
Phalcon\Flashmessages with no icon classes. #17712 - Faster HTML output of the
Phalcon\Flashmessages. #17704 - Faster
Phalcon\Acl\Adapter\Memory::isAllowed(). #17711 - Faster
Phalcon\Cache\Cache, thePhalcon\Storageadapters andPhalcon\Acl\Adapter\Memory::isAllowed()when no events manager is set. #17703 - Faster
Phalcon\Config\Config::path(). #17714 - Faster
Phalcon\Loggercalls with no excluded adapters. #17713 - Faster
Phalcon\Mvc\Microrequests with the default router service. #17715 - Faster base64url decode in the JWT parser and
Phalcon\Encryption\Crypt::decryptBase64(). #17705 - Faster construction of
Phalcon\Config\Configand its adapters when the config has no type. #17702 - Faster construction of the validators in
Phalcon\Filter\Validation. #17697 - Faster item storage, lookup, removal and JSON serialization in
Phalcon\Support\Collection. #17683 - Faster route index build in
Phalcon\Mvc\Routerfor routes with no host name. #17693 - Faster service registration in
Phalcon\Factory\AbstractFactoryand the factories that extend it. #17696 Phalcon\Mvc\Model::serialize()now stores the snapshot also when it is empty, for a model that keeps snapshots, the same as cphalcon. #17750Phalcon\Mvc\Model\Queryparses throughPhalcon\Mvc\Model\Query\Lang; its protected$parserproperty was removed. #800Phalcon\Queue\Consumer\Worker::handleSignal()now has a second optional parameter,?array $info. #17719
Added
Phalcon\Mvc\Model\Query\Lang::parsePHQL(), as in cphalcon: it caches each statement’s AST and tags it with anid(settingsorm.cache_levelandorm.unique_cache_id, both3by default), soPhalcon\Mvc\Model\Querycaches its intermediate representation per statement again. The cache lives as long as the PHP process;Query::clean()empties it, e.g. between requests of a long-running worker.orm.unique_cache_idis read once, at the first parse. #800Phalcon\Mvc\View\Engine\AbstractEngine::withScope(),getScope()andsetScope()for the variables that the templates share. #810
Fixed
- PHP 8.6 deprecation for session handlers without
create_sid():Phalcon\Session\Adapter\AbstractAdapterandPhalcon\Session\Adapter\Noopnow implementSessionIdInterfaceandcreate_sid(). #17687 - PHP 8.6 deprecation of
doubleval():Phalcon\Encryption\Security\Uuid\Version1andPhalcon\Encryption\Security\Uuid\Version6now usefloatval(). #17687 - PHP 8.6 deprecation of
spl_object_hash():Phalcon\Dispatcher\AbstractDispatcherandPhalcon\Html\Link\AbstractLinkProvidernow usespl_object_id(); the keys returned bygetLinks()are now integers. #17687 Phalcon\ADR\Router\AttributeFilter::filter()andPhalcon\ADR\Router\Router::pathFor()throwing anErrorfor an Action with aparams()method that cannot be called; they now throw theTypeErrorofcall_user_func(), the same as cphalcon. #815Phalcon\ADR\Router\AttributeFilter,Phalcon\Auth\Mvc\AuthDispatcherListener,Phalcon\Db\Dialect,Phalcon\Mvc\Model\Behavior\Timestampable,Phalcon\Mvc\Model\Eager\Loader,Phalcon\Mvc\RouterandPhalcon\Mvc\View\Engine\Voltbehaving differently than cphalcon in rare cases, such as anullvalue in an options array. #821Phalcon\ADR,Phalcon\Acl\Adapter\Memory,Phalcon\Cli\Dispatcher,Phalcon\Cli\Router,Phalcon\Container,Phalcon\Di,Phalcon\Dispatcher\AbstractDispatcher,Phalcon\Events\Manager,Phalcon\Filter,Phalcon\Html\TagFactory,Phalcon\Mvc\Application,Phalcon\Mvc\Micro,Phalcon\Mvc\Model::cloneResult(),Phalcon\Mvc\Router,Phalcon\Support\Collection,Phalcon\Support\Helper\Arr\Group,Phalcon\Support\HelperFactoryandPhalcon\Tag\Selectthrowing aTypeErrorfor a value that cphalcon converts, such as'42'for anintparameter of a handler, listener, action, callback or service; they now call user code with the PHP weak type rules, the same as cphalcon. #805Phalcon\ADR,Phalcon\Autoload\Loader,Phalcon\Config\ConfigFactory,Phalcon\Container,Phalcon\DataMapper,Phalcon\Events\Manager,Phalcon\Flash,Phalcon\Forms\Form,Phalcon\Html,Phalcon\Messages\Messages,Phalcon\Paginator\PaginatorFactory,Phalcon\SupportandPhalcon\Tagthrowing aTypeErrorfor anintvalue where a string is expected, such as aninttextarea value, a numeric column name or a numeric$_ENVvalue, which cphalcon converts. #887Phalcon\Acl\Adapter\Memory::addRole()andaddComponent()accepting a customRoleInterfaceorComponentInterfacename with the!delimiter, which let one role, component and access tuple share the access key of another. #17800Phalcon\Acl\Adapter\Memory::isAllowed()granting the access of a rule whose callback cannot be called, for example a function that does not exist or a private method. #17800Phalcon\Acl\Adapter\Memory::isAllowed()not firingacl:afterCheckAccessfor a role that does not exist. #17800Phalcon\Acl\Adapter\Memory::isAllowed()throwingReflectionExceptionfor a rule parameter whose class does not exist. #17800Phalcon\Acl\Adapter\Memory,Phalcon\Annotations,Phalcon\Autoload\Loader,Phalcon\DataMapper,Phalcon\Db,Phalcon\Di\Di,Phalcon\Forms\FormsLocatorandPhalcon\Storage\Adapter\Weakthrowing aTypeErrorfor a numeric array key where a string is expected, such as a numeric role withallow('*', ...), a numeric index name or a list of connection factories, which cphalcon converts. #900Phalcon\Acl\Adapter\Memory,Phalcon\Db\Dialect,Phalcon\Db\Profiler\Item,Phalcon\Mvc\Micro\Collection,Phalcon\Mvc\Model\RelationandPhalcon\Mvc\View\Engine\Volt\Compilerthrowing anErrorfor a property that is read before it is set, instead of using the cphalcon default value. #838Phalcon\Acl\Adapter\Storagegiving an “Array to string conversion” warning for a snapshot version that is not an integer or a string. #17800Phalcon\Acl,Phalcon\Assets\Manager,Phalcon\Encryption,Phalcon\FilterandPhalcon\Httpthrowing aTypeErrorfor anintvalue where a string is expected, such as anintrole name, a numeric field name in a validation or$_SERVER['REQUEST_TIME'], which cphalcon converts. #886Phalcon\Annotations\Adapter\Apcu,Phalcon\Storage\Adapter\AbstractAdapter,Phalcon\Storage\Adapter\RedisandPhalcon\Storage\Adapter\RedisClusterthrowing aTypeErrorfor an option with a numeric string, such as'lifetime' => '3600'from a configuration file, which cphalcon converts. #865Phalcon\Annotations\Adapter\Stream::read()returning the content of a cache file that does not hold aReflectionobject, or throwing aTypeErrorfor it; it now returnsfalse, the same as cphalcon. #17773Phalcon\Annotations\Adapter\Stream::write()writing the cache files with no PHP opening tag, so that a web request to a file in a folder that the web server can reach showed the serialized annotations. #17812Phalcon\Annotations\Adapter\Streamusing one cache file for the anonymous classes of a file whose path has no_, so that a class got the annotations of another class. #17810Phalcon\Annotations\Annotation::getArgument(),hasArgument()and thePhalcon\Annotations\Routerattributes throwing aTypeErrorfor a parameter value that cphalcon accepts, such as aboolposition or an objectbeforeMatch. #845Phalcon\Annotations\AnnotationsFactory,Phalcon\DataMapper\Pdo\Connection\AbstractConnection,Phalcon\Db\Adapter\AbstractAdapter,Phalcon\Di\Di,Phalcon\Encryption\Security\JWT\Builder,Phalcon\Filter\Validation,Phalcon\Mvc\Micro,Phalcon\Mvc\Router\Annotations,Phalcon\Mvc\View,Phalcon\Storage\Serializer\Php,Phalcon\Support\Helper\Arr\FirstKeyandPhalcon\Support\Helper\Arr\LastKeyusing return types that differ from cphalcon, thus a subclass that overrides the method with the cphalcon signature gave a fatal error. #841Phalcon\Annotations,Phalcon\Cache,Phalcon\Logger\LoggerFactory,Phalcon\Queue\Adapter\Stream,Phalcon\Session,Phalcon\StorageandPhalcon\Translatethrowing aTypeErrorfor anintvalue where a string is expected, such as'prefix' => 2024from an.inifile or anintcache key, which cphalcon converts. #883Phalcon\Assets\Asset::getRealTargetPath()accepting a symbolic link to a file that does not exist, which letPhalcon\Assets\Managerwrite an asset outside the target folder. #17802Phalcon\Auth\AbstractAuthDispatcherListener,Phalcon\Container\Resolver\Lazy\Call,Phalcon\Filter\Validation\Validator\UniquenessandPhalcon\Mvc\Routerthrowing a different error than cphalcon for a value that cannot be called. #817Phalcon\Auth\Adapter\Model::retrieveByCredentials()accepting a credential key with a newline at the end, instead of throwingInvalidCredentialKey. #17804Phalcon\Auth\Internal\ContainerResolver::resolveFresh()returning the same object for a non-sharedPhalcon\Di\Diservice whose definition is a built object, so that two activations of an access gate could share one instance. #17806Phalcon\Auth\Manager,Phalcon\Cli\Router\Route,Phalcon\Di\Injectable,Phalcon\Dispatcher\AbstractDispatcher,Phalcon\Filter\Validation\AbstractValidatorand its validators,Phalcon\Filter\Validation\AbstractValidatorComposite,Phalcon\Forms\Element\AbstractElement,Phalcon\Forms\FormandPhalcon\Mvc\Modelgiving a fatal error for a subclass that declares a property with no type or with the cphalcon type, such aspublic $transactionin a model. #840Phalcon\Auth(Guard\AbstractGuard::hasValidCredentials(),Guard\Session::__construct(),Guard\UserRememberandExceptions\ConfigRequiresNonEmptyValue::assert()) throwing aTypeErrorfor a parameter value that cphalcon accepts, such as anullsession guard configuration. #848Phalcon\Cache\CacheFactory,Phalcon\Cli\Dispatcher,Phalcon\Db\Adapter\Pdo\AbstractPdo,Phalcon\Db\Dialect,Phalcon\Db\Dialect\Sqlite,Phalcon\Db\Result\PdoResult,Phalcon\Di\ServiceProviderInterface,Phalcon\Http\Request,Phalcon\Support\RegistryandPhalcon\Tagusing parameter names that differ from cphalcon, thus a call with named arguments failed. #832Phalcon\Cli\Dispatcher::callActionMethod(),Phalcon\Cli\Router::handle()(converters),Phalcon\Container\Resolver\Lazy\FunctionCall,GetCall,NewCallandStaticCall,Phalcon\DataMapper\Pdo\Connection::__call(),Phalcon\Di\Di::get()(a static closure),Phalcon\Dispatcher\AbstractDispatcher::callActionMethod(),Phalcon\Mvc\Application::handle()(match callback),Phalcon\Mvc\Micro::handle()(handler),Phalcon\Mvc\Micro\LazyLoader::callMethod(),Phalcon\Mvc\Model\Resultset::filter(),Phalcon\Mvc\View::getRender()(config callback) andPhalcon\Mvc\View\Engine\Volt\Compiler::fireExtensionEvent()throwing aTypeErroror anErrorfor a value that cannot be called; they now give a warning and returnnull, the same as cphalcon. #815Phalcon\Cli\RouterandPhalcon\Mvc\Microchecking the result of a callback differently than cphalcon. #820Phalcon\Cli\Router,Phalcon\Db\Adapter\Pdo\AbstractPdo,Phalcon\Db\Column,Phalcon\Html\Helper\DoctypeandPhalcon\Logger\AbstractLoggermissing constants, protected properties or the constructor that cphalcon has. #833Phalcon\Cli,Phalcon\Di,Phalcon\Dispatcher,Phalcon\Mvc\Micro,Phalcon\Mvc\Router,Phalcon\Mvc\UrlandPhalcon\Mvc\Viewthrowing aTypeErrorfor anintvalue where a string is expected, such as'pattern' => 2024or a route converter that returns an int, which cphalcon converts. #885Phalcon\Container\Definition\Processor\ObjectProcessor::process()setting a factory closure with no parameters, although the factory is called with the container. #17777Phalcon\Container\Resolver\Lazy(CallableGet,CallableNew,Get,NewInstance,ArrayValues::merge()) andPhalcon\Di(Di::setAlias(),Service::resolve(),Service\Builder::build()) throwing aTypeErrorfor a parameter value that cphalcon accepts, such as anullservice id or alias. #849Phalcon\Container,Phalcon\DataMapper\Pdo\ConnectionLocator,Phalcon\Db\Dialect,Phalcon\Forms\FormsLocator,Phalcon\Html\TagFactory,Phalcon\Mvc\Model\Manager, thePhalcon\Queueadapters,Phalcon\Support\CollectionandPhalcon\Support\Helper\Arr\Groupthrowing aTypeErrorfor a parameter or return value that cphalcon accepts. #818Phalcon\Db\Adapter\AbstractAdapter::fetchColumn()returningfalseinstead ofnullfor aNULLvalue, andPhalcon\Contracts\Db\Adapter\Adapter::fetchColumn()documentingbool|stringas the return type. #17755Phalcon\Db\Adapter\AbstractAdapter::update()andupdateAsDict()changing every row for an empty where condition ('',[]or'0'), and not throwingPhalcon\Db\Exceptions\InvalidWhereConditionsfor a condition that is not a string or an array. #831Phalcon\Db\Adapter\Pdo\Postgresql::describeColumns()reportingmediumblobcolumns asColumn::TYPE_TEXT. #17724Phalcon\Db\Adapter\Pdo\Postgresql::describeReferences()returning wrong column pairs for composite foreign keys. #17680Phalcon\Db\Adapter\Pdo\Sqlite::describeColumns()reportingtinyint(1)columns asColumn::TYPE_INTEGER. #17724Phalcon\Db\Adapter\Pdo\Sqlite::describeColumns()reporting blob columns asColumn::TYPE_VARCHAR. #17724Phalcon\Db\Adapter\Pdo\Sqlite::describeColumns()usingColumn::TYPE_DECIMALas the bind type offloatcolumns, which stored their values as blobs. #17724Phalcon\Db\Adapter\Pdo\Sqlite::describeReferences()givingnullreferenced columns for a foreign key with no referenced columns, which references the primary key of the referenced table. #17815Phalcon\Db\Adapter\Pdo\Sqlite::describeReferences()giving one reference for each column of a composite foreign key. #17814Phalcon\Db\Dialect::escapeSchema()not escaping the quote character in the schema name, which all the dialects use for the schema of a table, for example inPhalcon\Db\Dialect\Postgresql::truncateTable(). #17808Phalcon\Db\Dialect::getSqlExpression()dropping the table name of anobjectexpression (alias.*in a PHQL subquery) and giving anUndefined array key "domain"warning. #897Phalcon\Db\Dialect::prepareColumnAlias(),prepareQualified()andprepareTable()declaringstringinstead of?stringfor the$aliasand$domainparameters, andgetSqlColumn(),getSqlTable()and the*and qualified expressions passing""instead ofnullfor no domain or no alias; a subclass that overrides these methods now has the same signature and gets the same values as in cphalcon. #821Phalcon\Db\Dialect\Mysql::listTables()returning MariaDB sequences andPhalcon\Db\Dialect\Postgresql::listTables()returning partitions. #17769Phalcon\Db\Dialect\Mysql::truncateTable()andPhalcon\Db\Dialect\Sqlite::truncateTable()not escaping the quote character in the table and schema names. #17808Phalcon\Db\Dialect\Postgresql::describeReferences()giving the name of the database as the referenced schema, instead of the schema of the referenced table. #17816Phalcon\Db\Dialect(getSqlColumn(),getSqlTable()and the SQL expression parts) andPhalcon\Db\Result\PdoResultthrowing aTypeErrorfor a parameter value that cphalcon accepts, such asnullor the column number ofsetFetchMode(Enum::FETCH_COLUMN, 0). #847Phalcon\DbandPhalcon\Mvc\Modelthrowing aTypeErrorfor anintvalue where a string is expected, such as'order' => 1or a numeric column name, which cphalcon converts. #884Phalcon\Di\Service\Builder::build()throwing anErroror aTypeErrorfor acallsmethod that cannot be called; it now gives a warning and returnsnull, the same as cphalcon. #808Phalcon\Encryption\Security::hash()giving the deprecation “Implicit conversion from float-string” for a fractional numeric stringcostoption. #17779Phalcon\Encryption\Security::hash(),Phalcon\Filter\Validation\AbstractValidatorand its validators, andPhalcon\Filter\Validation\Validator\Urlthrowing aTypeErrorfor an option with a numeric string, such as'code' => '5', which cphalcon converts. #871Phalcon\Events\Manager,Phalcon\Flash\Session,Phalcon\HtmlandPhalcon\Httpthrowing aTypeErrorfor a numeric array key where a string is expected, such as an uploaded file with a numeric form field name or a numeric header name, which cphalcon converts. #898Phalcon\Filter\Filter::__call(),Phalcon\Filter\Filter::sanitize(),Phalcon\Html\TagFactory::__call()andPhalcon\Support\HelperFactory::__call()throwing aTypeErrorfor a sanitizer or helper that cannot be called; they now give a warning and returnnull, the same as cphalcon.Phalcon\Filter\Filter::__call()now calls the__invoke()method of the sanitizer, as cphalcon does. #808Phalcon\Forms\Form::bind()andPhalcon\Mvc\Model(__set(),assign(),writeAttribute(), the setters, the hydration andunserialize()) throwing aTypeErrorfor a value that cphalcon converts, such as'42'for anintproperty; they now use the PHP weak type rules, the same as cphalcon. #804Phalcon\Forms\Form::getValue()returning the tag factory for the nametagFactory. #17727Phalcon\Forms(Element\AbstractElement::setFilters(),Element\Select::setOptions(),Form::bind(),Form::clear(),Manager::create(),Manager::loadForm()) throwing aTypeErrorfor a parameter value that cphalcon accepts, andgetFilters()/Form::getEntity()overrides with no return type giving a fatal error. #851Phalcon\Http\Request\Bag\AbstractBagandPhalcon\Http\Responsethrowing aTypeErrorfor a parameter value that cphalcon accepts, such as anullbag key, a string status code or the route parameters ofredirect(). #844Phalcon\Image\Adapter\AbstractAdapter::crop(),Phalcon\Encryption\Security\Random,Phalcon\Encryption\Security\JWT\Validator::validateClaim(),Phalcon\Storage\Serializer\Php::setAllowedClasses(),Phalcon\Queue\Adapter\Beanstalk\BeanstalkConnection::reserve()andPhalcon\DataMapper\Pdo\Connection\AbstractConnection::__call()throwing aTypeErrorfor a parameter value that cphalcon accepts, such as a string crop offset or reserve timeout. #850Phalcon\Image\ImageFactory::load()andPhalcon\Paginator\Adapter\AbstractAdapterthrowing aTypeErrorfor an option with a numeric string, such as'page' => '2'from a request, which cphalcon converts. #873Phalcon\Logger\Adapter\SyslogandPhalcon\Translate\Adapter\Gettextthrowing aTypeErrorfor an option with a numeric string, such as'facility' => '8'from a configuration file, which cphalcon converts. #867Phalcon\Mvc\Controllerreturningnullfor$this->eventsManagerandgetEventsManager()instead of theeventsManagerservice of the container, andsetEventsManager()ofPhalcon\Db\Adapter\AbstractAdapter,Phalcon\Mvc\Micro,Phalcon\Mvc\Model\Manager,Phalcon\Mvc\Router,Phalcon\Mvc\View,Phalcon\Mvc\View\Engine\AbstractEngineandPhalcon\Mvc\View\Simplereplacing that service. #835Phalcon\Mvc\Micro::handle()throwing aTypeErrorinstead ofPhalcon\Mvc\Micro\Exceptions\ErrorHandlerNotCallablefor an error handler that cannot be called. #815Phalcon\Mvc\Model::doLowInsert()not reading back the generated id on MySQL when the identity property is0. #17689Phalcon\Mvc\Model::find(),Phalcon\Mvc\Model\Query\BuilderandPhalcon\Mvc\Model\Relation::isReusable()throwing aTypeErrorfor an option with a numeric string, such as'offset' => '20', which cphalcon converts. #869Phalcon\Mvc\Model::save()leaving the transaction of the related records open when an exception is thrown during the save; the transaction is now rolled back before the exception is thrown again. #17756Phalcon\Mvc\Model::setup(),Phalcon\Tag::formLegacy(),Phalcon\Tag::getEscaper()andPhalcon\Tag\Selectignoring an option with anullvalue, which cphalcon uses as a value. #837Phalcon\Mvc\Model\Query::getIntermediate()throwing aTypeErrorafterparse()got the intermediate representation from the cache. #800Phalcon\Mvc\Model\Querygiving an “Undefined array key” warning for a join with noONcondition whenenable_implicit_joinsis disabled; the query still throwsPhalcon\Db\Exceptions\InvalidSqlExpression. #816Phalcon\Mvc\Model\Queryreusing a cached intermediate representation that was built with the other value of theenable_implicit_joinsoption. #800Phalcon\Mvc\Model\QuerythrowingPhalcon\Phql\Exceptioninstead ofPhalcon\Mvc\Model\Exceptionfor PHQL errors; PHQL statements now parse exactly as in cphalcon (error messages, string escape sequences, nesting limit, empty statements), with the parser fromphalcon/phql. #800Phalcon\Mvc\Model\Resultset::delete()andPhalcon\Mvc\Model\Resultset::update()throwing aTypeErrorinstead ofPhalcon\Mvc\Model\Exceptions\InvalidReturnedRecordfor a resultset withHYDRATE_ARRAYS. #880Phalcon\Mvc\Model\Resultset\Complex::serialize()andPhalcon\Mvc\Model\Resultset\Simple::serialize()throwing aTypeErrorwhen theserializerservice does not return a string, such asPhalcon\Storage\Serializer\None. #879Phalcon\Mvc\Model\Resultset\ComplexandPhalcon\Mvc\Model\Resultset\Simpleputting their cache in the serialized data, which failed for a cache that cannot be serialized, such as a Redis connection. A resultset from the cache now has no cache (getCache()returnsnull). #17766Phalcon\Mvc\Model\Resultset\Simplethrowing aTypeErrorwithHYDRATE_ARRAYSorHYDRATE_OBJECTS. #819Phalcon\Mvc\Modelgetting themodelsManagerandmodelsMetadataservices withget()instead ofgetShared(), thus a service that is not shared gave a new instance for each call. #839Phalcon\Mvc\Model,Phalcon\Mvc\Model\Binder,Phalcon\Mvc\Model\Eager\Loader,Phalcon\Mvc\Model\Query,Phalcon\Mvc\ViewandPhalcon\Mvc\View\Simplethrowing aTypeErrorfor a numeric array key where a string is expected, such as anintcolumn map value, a numeric relation alias or a numeric PHQL alias, which cphalcon converts. #899Phalcon\Mvc\Model,Phalcon\Mvc\Model\MetaData,Phalcon\Mvc\RouterandPhalcon\Mvc\Viewthrowing a different exception than cphalcon, or none, for a column that is not in the column map, metadata that is not an array, or not-found paths or a views directory of the wrong type; withorm.ignore_unknown_columns,Phalcon\Mvc\Model::save()gave a warning and aTypeErrorfor such a column. #834Phalcon\Mvc\Router::handle()throwing aTypeErrorinstead ofPhalcon\Mvc\Router\Exceptions\WrongPathsKeyfor anintpaths key. #881Phalcon\Mvc\View\Engine\PhpandPhalcon\Mvc\View\Engine\Voltnot sharing the variables of a template with its layout and partials, as cphalcon does. #810Phalcon\Mvc\View\Engine\PhpandPhalcon\Mvc\View\Engine\Voltskipping a render parameter namedthis, where cphalcon throwsError: Cannot re-assign $this. #921Phalcon\Mvc\View\Engine\Volt\Compiler::compile()ignoring the deprecated optionscompileAlways,compiledPath,compiledSeparatorandcompiledExtension, and using the default value for an option set tonull. #836Phalcon\Mvc\View\Engine\Volt\Compiler::compile()rendering serialized blocks for the second child of a layout whenstatisfalse. #17674Phalcon\Mvc\View\Engine\Volt\Compiler::compileCall()silently dropping{% call %}blocks instead of throwing an exception. #17676Phalcon\Mvc\View\Engine\Volt\Compiler::compileEcho()escaping the output of the escape filters (e,escape,escape_attrand others) a second time whenautoescapeis on. #17678Phalcon\Mvc\View\Engine\Volt\CompilerthrowingPhalcon\Volt\Exceptioninstead ofPhalcon\Mvc\View\Exceptionfor template syntax errors; Volt templates now parse exactly as in cphalcon (error messages, line numbers, nesting limit), with the parser fromphalcon/volt. #801Phalcon\Storage\Adapter\Libmemcachedsetting the failover defaults and theclientoptions on the wrong Memcached options. #863Phalcon\Support\Debug::debugVar()storing the arguments and objects of each backtrace frame. #17746Phalcon\Support\Debug::onUncaughtException()discarding only one output buffer level. #17739Phalcon\Support\Debug::onUncaughtException()turning a warning raised while rendering into a fatal error and echoing later exception messages without escaping. #17733Phalcon\Support\Debug::setBlacklist()filtering only the top-level keys of the request and server data. #17736Phalcon\Support\Debug\Dump::variable()not escaping public property names in the HTML output. #17729Phalcon\Support\Debug\Dump::variable()printing the key after a skipped key on the same line. #17746Phalcon\Support\Debug\Dump::variable()throwing anErrorin detailed mode for typed properties that have no value. #17735Phalcon\Support\Debug\Renderer\HtmlRenderer::render()dropping invalid UTF-8 text and not escaping quotes, class names and file paths. #17731Phalcon\Support\Debug\Renderer\HtmlRenderer::render()not showing the previous exceptions, and showing files in a Windows\vendor\folder as application code. #17746Phalcon\Support\Debug\Renderer\HtmlRenderer::render()stopping the debug page for objects with adump()method that is not public, is static, has required parameters or does not return an array. #17735Phalcon\Support\Debug\ReportBuilder::build()reading a file again for each frame, and linking Phalcon classes to API pages that do not exist. #17746Phalcon\Support(Settings,Collection::sort(),AbstractLocator,Debug\Report\BacktraceItem, theArrhelpers andStr\Friendly) throwing aTypeErrorfor a parameter value that cphalcon accepts, such as a string fromDb\Adapter\AbstractAdapter::setup(["forceCasting" => "1"]). #846Phalcon\TagandPhalcon\Tag\Selectthrowing aTypeErrorfor a parameter value that cphalcon accepts, such asnullor anintfor the parameters of a helper, the title, the link text or thelocalflag oflinkTo();checkField(),formLegacy(),getValue(),radioField()andtextArea()also give the cphalcon result for some parameter arrays, such as atextArea()with only anid. #843Phalcon\Translate\Adapter\Csvthrowing aTypeErrorfor a blank line in the translation file. #882composer cs-fixer-fixaddingdeclare(strict_types=1)toPhalcon\Support\Traits\WeakTypesTrait, which must use the PHP weak type rules. #875
Removed
- Removed the unused
modekey from the code fragment ofPhalcon\Support\Debug\Report\BacktraceItem::getFragment(). #17748 - Removed the unused protected
Phalcon\Db\Dialect\Traits\TextTrait::getExistsSql(), which did not escape the view name; useviewExists()ortableExists()of the dialect. #919
6.0.0 RC 4 (2026-10-15)
Changed
- Faster SQL generation in
Phalcon\Db\Dialectand select execution inPhalcon\Mvc\Model\Query. #17660 [doc] [doc] - Faster event dispatch in
Phalcon\Events\Manager, method detection inPhalcon\Http\Requestand header sending inPhalcon\Http\Response. #17633 [doc] [doc] [doc] - Faster model hydration in
Phalcon\Mvc\ModelandPhalcon\Mvc\Model\Resultset\Complex. #17632 [doc] - Faster rendering and template compilation in
Phalcon\Mvc\ViewandPhalcon\Mvc\View\Engine\Volt\Compiler. #17668 [doc] [doc] - Faster route matching and route index build in
Phalcon\Mvc\Router. #17628 [doc] - Faster router setup in
Phalcon\Mvc\Micro: the default router is created without its default routes. #17630 [doc] - Faster service registration and resolution in
Phalcon\Container\Container. #17631 [doc] - Faster service resolution in
Phalcon\Di\Difor service names with no alias. #17629 [doc]
Fixed
Phalcon\Mvc\Model::__set()skipping the user-defined setter whennullis assigned to a relationship alias. #17662 [doc]Phalcon\Mvc\Router::getMatches()andPhalcon\Cli\Router::getMatches()returning the matches of an earlier request after a static-route match or no match. #17646 [doc] [doc]Phalcon\Mvc\Router::getMatches()returning the internalMARKkey after a combined-regex match. #17634 [doc]Phalcon\Mvc\Routercombined-regex matching changing the meaning of a route pattern with|outside a group. #17645 [doc]Phalcon\Mvc\Routercombined-regex matching failing to compile or mixing matches for routes with named groups. #17636 [doc]Phalcon\Mvc\Routercombined-regex matching returning a wrong route when a route pattern in the same chunk does not compile. #17644 [doc]Phalcon\Mvc\Routercombined-regex matching skipping a route after abeforeMatchveto and calling the callback two times. #17635 [doc]Phalcon\Mvc\Routerstatic-route matching calling abeforeMatchcallback two times after a veto. #17638 [doc]Phalcon\Mvc\Routerstatic-route matching ignoring a later-attached regex route of the request method. #17642 [doc]Phalcon\Mvc\Routerstatic-route matching passing over a regex route when a later static route is skipped by its host name orbeforeMatch. #17643 [doc]Phalcon\Mvc\View\Engine\Volt\Compilerusing the blocks and the{% extends %}state of an earlier template when one compiler compiles more than one template. #17668 [doc]
6.0.0 RC 3 (2026-10-01)
Changed
- Faster creation of
Phalcon\Di\FactoryDefaultand faster shared service lookups inPhalcon\Di\Di. #17617 - Faster creation of
Phalcon\Filter\Filter. #17617 - Faster route definition and route index build in
Phalcon\Mvc\Router. #17618 - Faster service definition and alias lookups in
Phalcon\Container\Container. #17619
Fixed
Phalcon\Mvc\View::partial()andPhalcon\Mvc\View\Simple::render()dropping a..path segment instead of resolving it. #17606 [doc]Phalcon\Mvc\View::partial()not detecting a Windows absolute path (C:\...) as absolute. #17606 [doc]Phalcon\Mvc\Model\MetaData\Streamletting other processes read a partially written cache file. #17608 [doc]Phalcon\Mvc\Model\MetaDatastoring a cached value that is not an array as the model meta-data. #17608 [doc]Phalcon\Filter\Filter::sanitize()not calling array callables registered withset(). #17610 [doc]
6.0.0 RC 2 (2026-09-22)
Changed
Phalcon\Annotations\ReaderInterfaceno longer declares the staticparseDocBlock(); it stays a public static method ofPhalcon\Annotations\Reader. #17601 [doc]Phalcon\Mvc\Model\MetaData\Strategy\AnnotationsreadsskipOnInsert,skipOnUpdate,allowEmptyStringanddefaultValuenext to theskip_on_insert,skip_on_update,allow_empty_stringanddefaultit already read. #17601 [doc]
Added
Phalcon\Annotations\AttributesReaderreads PHP attributes instead of docblocks;setReader()on the annotations adapter selects it andPhalcon\Annotations\Readerstays the default. #17601 [doc]Phalcon\Annotations\Router\Route,Connect,Delete,Get,Head,Options,Patch,Post,Purge,Put,Trace,RoutePrefixandPhalcon\Annotations\Models\MetaData\Column,Identity,Primary,Sourcegive the attribute form of the router and model metadata annotations. #17601 [doc]
6.0.0 RC 1 (2026-09-18)
Changed
Phalcon\Db\Adapter\Pdo\AbstractPdo::commit()androllback()now throwPhalcon\Db\Exceptions\NoActiveTransactionwhen the connection has no active transaction, instead of sending a commit, rollback or savepoint statement to the server. #17546 [doc]
Added
Phalcon\Mvc\Model::findFirst()now recognizes theeagerparameter, so relations can be eagerly loaded. #17534 [doc]
Fixed
- PHQL
WITHnaming a model instead of a relation alias always throwingRelationshipNotFound; the fallback checkedPhalcon\Mvc\Model\Manager::getRelationsBetween()for an object, but it returns an array. Ambiguous pairs now throwAmbiguousJoinRelation. #17554 [doc] - PHQL string literals not resolving their escape sequences, so
\nreached the database as a backslash and ann. #17585 [doc] Phalcon\Db\Adapter\Pdo\AbstractPdoleaving the transaction nesting level wrong whenbegin(),commit()orrollback()fails. #17546 [doc]Phalcon\Filter\Validation\Validator\File\AbstractFile::checkUpload()reporting success when the field value is not an uploaded file array; a missing file or a plain string now fails validation. #17541 [doc]Phalcon\Filter\Validation\Validator\File\Resolution\Equal,Max,MinandAspectRationot checking thefalsereturned bygetimagesize(); a file that is not a readable image is now rejected. #17542 [doc]Phalcon\Filter\Validation\Validator\Ipignoring per-fieldallowPrivateandallowReservedarrays; the option is now resolved for the field before it becomes a filter flag. #17548 [doc]Phalcon\Forms\Element\CheckGroupandRadioGroupstoring their choices in the propertyPhalcon\Forms\Element\AbstractElementuses for user options, sosetUserOption()added a choice andsetOptions()removed every user option. #17536 [doc]Phalcon\Forms\Element\Select::addOption()writing with an offset into an object ornulloptions value; the write now happens only when the options value is an array (nullbecomes an empty array). #17536 [doc]Phalcon\Mvc\Model::__construct()raisingTypeErroron a non-arraydataargument; it is ignored, as cphalcon does.Phalcon\Mvc\Model\Manager::getRelationRecords()raisingTypeErroron a compound through-relation markedreusable, and reusing one key for every record. The key is now built from every field the relation covers. #17560 [doc]Phalcon\Mvc\Model\Managerrelation guards throwingTypeErroron a string field list, and the second check inaddHasManyToMany()/addHasOneThrough()comparing the same pair twice. #17556 [doc]Phalcon\Mvc\Model\MetaData::getColumnMap()andgetReverseColumnMap()raisingTypeErrorfrom the reader on a corrupt column-map slot, so theirCorruptedMetaDataguard could never fire, as it does in cphalcon.Phalcon\Mvc\Model\Resultset::valid()reporting no row for a resultset restored from cache;Phalcon\Mvc\Model\Resultset\Complexstores rows that are already hydrated, so they are objects and not arrays. #17574 [doc]Phalcon\Mvc\Model\Resultset\Simple::current()giving backfalseon a second call at a position with no row; thefalseit caches is a sentinel, andnullis returned as the declared type says. #17568 [doc]Phalcon\Mvc\ModelraisingTypeErroron a composite virtual foreign key violation, and when the case-insensitive column-map lookup ran without a column map. #17558 [doc]Phalcon\Mvc\Router::loadFromConfig()silently configuring nothing when the config was neither an array nor aPhalcon\Config\ConfigInterface;InvalidConfigSourceis thrown, as cphalcon does.Phalcon\Mvc\View\Engine\Volt::isIncluded()raisingTypeErroron a haystack that is neither an array nor a string;InvalidHaystackis thrown, as cphalcon does. A missingmb_strpos()falls back tostrpos().Phalcon\Mvc\View\Engine\Volt::preload()raising an error when the engine has no container; the href is given back unchanged.Phalcon\Mvc\View\Engine\Volt\Compiler::compileSource()returningnullin extends mode when the template contributes no blocks. #17565 [doc]Phalcon\Mvc\View\Engine\Volt\Compiler::$prefixand$extendedBlockstyped more narrowly than the cphalcon properties, so a closure prefix generator could not be stored and an extends-mode sub-compilation raisedTypeError.Phalcon\Storage\Adapter\StreamandPhalcon\Queue\Adapter\Stream\StreamContextreporting amkdir(): File existswarning when a different process makes the directory first. #17561 [doc]Phalcon\Support\Traits\FilePathTrait::prepareVirtualPath()raisingTypeErrorwhenrealpath()returnedfalsefor a missing Volt template, beforeTemplateFileNotFoundcould be thrown.
Removed
Phalcon\Mvc\Model\Query::ormSingleQuotes(), private and unused since escaping moved into the dialect. It has no cphalcon counterpart.
6.0.0 beta 11 (2026-08-26)
Changed
- ACL role, component and access names can no longer contain
!, the internal key delimiter;Phalcon\Acl\Exceptions\ForbiddenDelimiteris thrown instead. - Cache file names of
Phalcon\Annotations\Adapter\Stream,Phalcon\Mvc\Model\MetaData\StreamandPhalcon\Storage\Adapter\Streamget a hash suffix when the key contains the character that the separator replacement produces (_for class names;/,\,:for storage keys), so two different keys can no longer share one file. Names of all other keys are unchanged. Phalcon\Auth\Guard\Sessionsets theSecureflag of the remember-me cookie from the newrememberSecureoption (defaulttrue) instead of the request scheme, so a TLS-terminating proxy that reports plain HTTP to the backend cannot downgrade it.Phalcon\Auth\Guard\Sessionvalidates the “remember me” token against the user agent of the current request instead of the one stored in the cookie; a browser user-agent change now ends a remembered session.Phalcon\Encryption\Security::CRYPT_MD5,CRYPT_SHA256andCRYPT_SHA512are documented as weak legacy algorithms to be removed in a future major version; use bcrypt or Argon2 and rehash on login.Phalcon\Storage\Adapter\Streamcreates its shard directories with mode0755instead of0777. Thanks to Ilia Alshanetsky
Added
- Optional fifth argument
stopOnFalseonPhalcon\Events\Manager::fire()(not on the interface), a per-call override ofsetStopOnFalse();EventsAwareTrait::fireManagerEvent()gained a matching fourth argument. Phalcon\Acl\Exceptions\ForbiddenDelimiter, thrown when an ACL role, component or access name contains!.Phalcon\Auth\Exceptions\InvalidCredentialKey, thrown when a credential key passed toPhalcon\Auth\Adapter\Model::retrieveByCredentials()is not a plain identifier.Phalcon\Http\Request\Bag\AbstractBag::clear(), removing all elements of a request bag.allowedClassesoption for the Storage adapters (true,falseor a list of class names), forwarded to the newPhalcon\Storage\Serializer\Php::setAllowedClasses(): restricts the classesunserialize()may instantiate for stored values, including the nested content of theStreamadapter. A class outside the list makes the read fail instead of building an object. Thanks to Ilia AlshanetskyrememberSecureoption for the session guard (Phalcon\Auth\Guard\Config\SessionGuardConfig,Session::fromOptions()).
Fixed
- “Remember me” cookie of another account surviving
Phalcon\Auth\Guard\Session::logout()when the current user does not implementAuthRemember. - A
falsereturned by a listener ofacl:beforeCheckAccess,dispatch:beforeDispatch,dispatch:beforeExecuteRoute,micro:beforeHandleRouteormicro:beforeExecuteRoutebeing overwritten by a later listener that returned a non-null value; these boundaries now fire with stop-on-false, so a denial is final. - Asset output following a symbolic link at the target file and writing outside the assets directory.
- Backslash path traversal in
Phalcon\Mvc\View::partial()andPhalcon\Mvc\View\Simple::render()on Windows. - Cached user surviving
Phalcon\Auth\Guard\Token::setRequest(), so a replaced request inherited the previous authentication. - Column comment concatenated unescaped into the
CREATE TABLE/ALTER TABLEDDL of the MySQL dialect; it is now escaped like the DEFAULT clause. Thanks to Ilia Alshanetsky - Credential keys interpolated unvalidated into the PHQL built by
Phalcon\Auth\Adapter\Model::retrieveByCredentials(). - Distinct ACL tuples colliding on the same internal key when a role, component or access name contained
!. - JWT audience validated with a loose comparison, so a numeric or boolean
audclaim satisfied a string audience. - Length-dependent HMAC work on the CBC decrypt failure path of
Phalcon\Encryption\Crypt, which could still tell a padding failure from a MAC mismatch by timing. - Malformed ACL snapshot loaded by
Phalcon\Acl\Adapter\StorageraisingTypeErroror leaving the adapter half loaded, and deep or cyclic object graphs recursing without limit;InvalidSnapshotis now thrown before any state changes. - Namespace middleware bypass in the ADR
Routerthrough case-variant or separator-injected paths that PHP resolves to the canonical Action class; only the exact declared class name is a match. - Non-string elements passed to
Phalcon\Acl\Adapter\Memory::addInherit()raising a warning and aTypeErrorinstead ofInvalidRoleType. - Request attributes of the previous route surviving on a reused request in
Phalcon\ADR\Application::handle(). - Scheme allow-list bypass in the Filter
urlsanitizer through HTML-entity obfuscated schemes (javascript:) and URLs thatparse_url()cannot parse; the sanitizer now fails closed. Thanks to Ilia Alshanetsky - Validators
Alpha,Alnum,Confirmation,CreditCard,Digit,Numericality,Regex,StringLength\MinandStringLength\Maxcast an array value to the constant"Array", sofield[]=xpassed alphabetic, alphanumeric, length and confirmation checks; a value that cannot be a string is now rejected with the validator’s message. Thanks to Ilia Alshanetsky - View parameters named
pathorcompiledTemplatePathreplacing the file included by thePhpandVoltview engines. - Volt extends-mode cache unserialized without a class restriction.
Phalcon\Tag::getEscaper()treated every value other thantrueas escaping disabled, so1or"1"silently switched escaping off; it now matches cphalcon (only a falsy value disables it).ReflectionException/TypeErrorfrom ACL rule callbacks with builtin-typed parameters, array callables or static-method strings.acl:afterCheckAccessreporting the static rule instead of the finalisAllowed()decision (rule callback and default action were not applied).only()/except()action filters leaking betweenPhalcon\Auth\Manager::access()activations when the access gate was registered as a shared service in the legacyDi.
6.0.0 beta 10 (2026-08-25)
Changed
- Added regression tests for the security hardening changes that had no failing-on-revert coverage.
- The PHPUnit configuration now fails the run on notices, deprecations and PHPUnit deprecations, and prints the details of every triggering test.
Fixed
Phalcon\Db\Dialect\Mysql::getColumnDefinition()appendedVARCHARto a custom string type and ignoredtypeValues, so ENUM/SET columns rendered asENUMVARCHARinstead ofENUM('a', 'b'); the method now mirrors cphalcon, including the escaping of the values.- Stale shadow flag clean-up in
Phalcon\Mvc\Routernow checks the entry exists before removing it, in sync with cphalcon #17527.
6.0.0 beta 9 (2026-08-24)
Fixed
- Attribute name and empty-option injection in the legacy Tag / Forms Select element.
- Attribute name and tag name injection in the Html Tag helpers.
- Attribute name splitting in the Html Escaper
attributes()array keys. - Backslash breakout in the Html Escaper
js()output. - Broken string-literal escaping of column defaults and ENUM/SET values in the Db dialects.
- CBC padding-oracle exposure in
Crypt::decrypt(), where a padding failure was distinguishable from a MAC mismatch. - Command injection via CR/LF in Beanstalk queue tube names.
- CORS credentials paired with a reflected wildcard origin in the ADR Cors middleware.
- Dangerous URL scheme (
javascript:,data:) passthrough in the Filterurlsanitizer. - Format-string denial of service in the Translate indexed-array interpolator.
- Log injection via unescaped control characters in the Logger line formatter.
- Missing Secure and HttpOnly flags on the Auth “remember me” cookie.
- Non-constant-time credential comparison in the Auth memory and stream adapters.
- Non-cryptographic randomness in the ISO-10126 padding scheme.
- Object injection through unrestricted
unserialize()in the Storage Stream payload read. - Only the first configured trusted proxy checked when resolving the Request client address.
- Open redirect in the ADR redirect responder bypassing the Http Response
redirect()gate. - Open redirect via absolute and protocol-relative targets in the Http Response
redirect(). - Path traversal in the View
partial()and Simplerender()paths. - Path traversal via the cache key in the Storage Stream adapter.
- Path traversal via the session id in the Session Stream adapter.
- Reflected XSS via unescaped array keys in the Debug dump and exception renderer.
- SQL injection in the Db Dialect schema-introspection methods.
- SQL injection via uncast LIMIT and OFFSET values in the Db Dialect
limit(). - Session fixation in the Auth Session guard login.
- Session id not regenerated on the Auth Session guard logout.
- Unbounded image dimensions (decompression bomb / pixel flood) in the GD and Imagick image adapters.
- Unbounded recursion in the WKB geometry parser.
- Unescaped CSS class in Flash messages.
- Unescaped identifier quoting in the DataMapper PDO connection.
- Unescaped label and link in the deprecated Html Breadcrumbs.
- Unescaped label text in the Html checkbox and radio helpers.
- Unescaped link in the Html breadcrumbs helper.
- Wrong route dispatched by the Router fast path when a static route follows a shadowing regex.
6.0.0 beta 8 (2026-08-22)
Fixed
- Single-quoted string emission in Volt Compiler.
- Quoted parameters in PHQL/Query
6.0.0 beta 7 (2026-08-19)
Changed
- Changed
Phalcon\Filter\Validation\Validator\Callbackto stop binding the callback closure to the validator; to set the message from inside the callback (#17255), declare a second parameter and call$validator->setTemplate()instead of$this->setTemplate()#17499 [doc] - Changed
Phalcon\Filter\Validation\Validator\StringLength,Phalcon\Filter\Validation\Validator\StringLength\MinandPhalcon\Filter\Validation\Validator\StringLength\Maxto treatminandmaxas inclusive when theincludedoption is not set, matching the class documentation and the behavior before 5.7.0; setincludedtofalsefor exclusive boundaries #17503 [doc]
Added
- Added
includedMinimumandincludedMaximumas aliases of theincludedoption inPhalcon\Filter\Validation\Validator\StringLength\MinandPhalcon\Filter\Validation\Validator\StringLength\Max, so the option names of theStringLengthcontainer also work on the two validators directly.includedhas precedence if you set both #17503 [doc] - Added lifecycle events to the DataMapper connections, fired through
Phalcon\Events\Managerand named on the newPhalcon\DataMapper\Pdo\Eventsclass:dm:beforeConnect/dm:afterConnect,dm:beforeDisconnect/dm:afterDisconnect,dm:beforePerform/dm:afterPerform,dm:beforeExec/dm:afterExec,dm:beforeQuery/dm:afterQuery,dm:beforeBeginTransaction/dm:afterBeginTransaction,dm:beforeCommit/dm:afterCommit,dm:beforeRollBack/dm:afterRollBackanddm:connectionLost.prepare()has no events of its own becauseperform()calls it, which would report one operation twice. The connect, disconnect and connectionLost events report a change of the connection state and fire whichever method causes it, so an automatic reconnect reports the lost connection and the new one.Phalcon\DataMapper\Pdo\Connection\Decorateddoes not fire the connect and disconnect events because it never connects and cannot disconnect. #17501 [doc] - Added
getEventsManager()andsetEventsManager()toPhalcon\DataMapper\Pdo\Connection\AbstractConnection, and therefore toPhalcon\DataMapper\Pdo\ConnectionandPhalcon\DataMapper\Pdo\Connection\Decorated, and toPhalcon\DataMapper\Pdo\ConnectionLocator, which gives its events manager to every connection it returns, including the ones it builds on demand. The two classes now carry thePhalcon\Contracts\Events\EventsAwarecontract.Phalcon\DataMapper\Pdo\Connection\ConnectionInterfaceis unchanged, so classes that implement it directly keep working #17501 [doc] - Added
Phalcon\DataMapper\Pdo\Exception\OperationCancelled, thrown when a listener cancels one of thebefore*events. The operation does not run. To cancel, a listener must call$event->stop()and also returnfalse:stop()alone returns the value of the listener, which the connection cannot tell apart from “no listeners”, andfalsealone is replaced by any later listener that returns a value while the events manager is not instopOnFalsemode. Theafter*events are not cancelable #17501 [doc]
Fixed
- Fixed
Phalcon\Filter\Validation\Validator\Callbackrebinding$thisin callback closures; the validator is now passed as a second argument to closures that declare one #17499 [doc] - Fixed
Phalcon\Filter\Validation\Validator\StringLength\MinandPhalcon\Filter\Validation\Validator\StringLength\Maxrejecting a string with a length exactly equal tominormaxwhen theincludedoption was not set, a regression introduced in 5.7.0 #17503 [doc] - Fixed
Phalcon\Filter\Validation\Validator\StringLengthgiving theincludedMinimum/includedMaximumandmessageMinimum/messageMaximumoption of one boundary to the validator of the other boundary #17503 [doc] - Fixed
Phalcon\Html\Helper\Input\Generic,Phalcon\Html\Helper\Input\CheckboxandPhalcon\Html\Helper\Input\Radiothrowing an error when you build them directly without aPhalcon\Html\Helper\Doctype, which their constructor accepts as optional.Phalcon\Html\Helper\Input\AbstractInput::__toString()now renders HTML5 when there is no doctype, the same asPhalcon\Html\Helper\VoidTagand the same as a defaultDoctype. Helpers that come fromPhalcon\Html\TagFactoryalways get a doctype, so their output does not change #17507 [doc] - Fixed
Phalcon\Image\Adapter\Imagick::background(),reflection(),text()andwatermark()discarding any opacity below 100, andsharpen()rounding its amount down, because the division by 100 was stored back in the integer parameter;watermark()left the image unchanged for every opacity except 100 #17510 [doc] - Fixed
Phalcon\Image\Adapter\Imagicknever coalescing the frames of a GIF, because the constructor comparedgetImageType(), an ImagickIMGTYPE_*value, againstIMAGETYPE_GIF; the width and the height of an animated GIF now describe the canvas instead of whichever sub frame the cursor was on #17510 [doc] - Fixed
Phalcon\Image\Adapter\Imagick::render()returning the current frame alone for a GIF, andsave()failing withno encode delegate for this image formatafter an operation that rebuilds the image; both now mark every frame with the format, whichsetImageFormat()applies to the current frame only #17510 [doc]
6.0.0 beta 6 (2026-08-02)
Fixed
- Fixed
Phalcon\Mvc\View::partial()andrender()throwingViewNotFoundfor absolute paths #17426
6.0.0 beta 5 (2026-07-31)
Changed
- Changed
Phalcon\Mvc\Model\Resultset::refresh()to reset the cursor - position, current row, buffered rows and active row - after replaying the statement. #17399 [doc] - Changed
Phalcon\Events\Manager::getEventTypes()togetListenerMap(), which now returns each event type mapped to its listeners. #17416 [doc]
Added
- Added
Phalcon\ADR\Front\AbstractHttpFront::boot(), which builds the container, loads the environment and registers the providers, then returns the container - for consumers that need it before, or instead of,run(). The container is built once and cached, soboot()andrun()share the same instance. A bootstrap file can now bereturn (new AppFront(dirname(__DIR__)))->boot();. #17413 [doc] - Added
Phalcon\Contracts\Container\Service\Enumerableimplemented inPhalcon\Container\Container. #17416 [doc] - Added
Phalcon\Contracts\Events\Enumerable, implemented inPhalcon\Events\Manager. #17416 [doc] - Added
methodFor()to thePhalcon\Contracts\ADR\Router\Routercontract and toPhalcon\ADR\Router\Router. It names the HTTP method an Action class answers, the counterpart topathFor(). #17416 [doc]
Fixed
- Fixed
Phalcon\Mvc\Model\Resultsetcosting two statements for every resultset on SQLite. #17399 [doc] - Fixed
Phalcon\Db\Result\PdoResult::numRows()failing on multi-line statements. #17399 - Fixed
Phalcon\Mvc\Model\Resultset::seek()leaving the previous row in place as the current one when seeking past the end of a resultset held in memory. #17399 [doc] - Fixed
Phalcon\Db\Adapter\Pdo\Mysql::describeColumns()returning string, date and time defaults still wrapped in quotes on MariaDB, e.g.'fi'instead offi. MariaDB reportsCOLUMN_DEFAULTas the DDL source rather than the resolved literal. Expression defaults are unaffected. Note that on MariaDB this changes whatPhalcon\Db\Column::getDefault()returns and what the model layer writes into an unsetNOT NULLcolumn on save; if you were stripping the quotes yourself, remove that workaround. MySQL is unaffected. #17417 [doc] - Fixed
Phalcon\Db\Adapter\Pdo\Mysql::describeColumns()reporting a column declaredDEFAULT NULLas the literal string"NULL"on MariaDB, which was then written back onto the model attribute on save. #17176 [doc]
6.0.0 beta 4 (2026-07-28)
Changed
- Changed
Phalcon\ADR\Router\Routerto derive exactly one Action class per path: the class name is the verb followed by every static segment concatenated. #17410 [doc]
Added
- Added
classFor()to thePhalcon\Contracts\ADR\Router\Routercontract and toPhalcon\ADR\Router\Router. It names the Action class the convention would use for a static path. #17410 [doc]
Fixed
- Fixed
Phalcon\Mvc\Model::find()andPhalcon\Mvc\Model::findFirst()raising an errorCall to undefined method static::getpreparedquery(). Usingselfvs.staticfor the internal calls. #17409 [doc]
6.0.0 beta 3 (2026-07-27)
Changed
- Changed
Phalcon\ADR\Router\Routerfrom a candidate chain to a namespace descent: a path segment becomes a namespace segment only if the matching directory exists, after which at most two Action classes are probed instead of five. An Action can no longer be silently shadowed by an earlier candidate. RequiressetActionDirectory(). #17405 [doc]
Added
- Added
pathFor(),setActionDirectory()andsetWordSeparator()to thePhalcon\Contracts\ADR\Router\Routercontract and toPhalcon\ADR\Router\Router; the two setters are also onPhalcon\ADR\Application.pathFor()is the inverse of the routing convention, returning the canonical path an Action answers ornull. AddedPhalcon\ADR\Exceptions\ActionDirectoryNotSet. #17405 [doc] - Added
Phalcon\Container\Container::getServiceNames(), returning the names of every registered service definition. Names that only exist as an alias, a pre-set instance or a parameter are not included. #17406 [doc] AddedPhalcon\Events\Manager::getEventTypes(), returning the event types that currently have at least one listener attached, including those contributed by subscribers. Listeners attached withattach()were previously not enumerable at all, sincegetListeners()requires a known event type. #17406 [doc]
Fixed
- Fixed
Phalcon\ADR\Router\Routertreating-and_as the same delimiter, so/forgot-passwordand/forgot_passwordresolved to the same Action and the path-to-class map had no inverse. A single separator now applies in both directions, default-and settable withsetWordSeparator();_is literal. #17405 [doc]
6.0.0 beta 2 (2026-07-26)
Changed
- Changed
Phalcon\Mvc\Model::getRelated()andPhalcon\Mvc\Model::isRelationshipLoaded()to test the relation cache witharray_key_exists()instead ofisset(), so a to-one relation that resolves to no record is no longer re-queried on every access #17331 [doc] - Changed
Phalcon\Mvc\Model\Manager::mergeFindParameters()fromfinal protectedtofinal public static#17331
Added
- Added
Phalcon\ADR\Responder\ViewResponder, which renders a.phtmltemplate and returns it as an HTML response. The action picks the template withwithTemplate(), and the view receivesresult,messagesandstatus. Any renderer implementing the newPhalcon\Contracts\View\Renderercan be used -Phalcon\Mvc\View\Simplenow does. #17379 [doc] - Added opt-in route-parameter pre-filtering to the ADR convention router via the new
Phalcon\ADR\Router\AttributeFilter. An Action that declares a staticparams()method has its positional route segments validated against a regex, cast to a scalar type (int,float,string) and optionally passed through a converter closure, then written to the request as named attributes - all before the Action runs. A regex miss is treated as a route miss (404). #17393 [doc] - Added eager loading of model relations:
Phalcon\Mvc\Model::find()accepts aneagerparameter - an array of dot-delimited relation paths, optionallypath => options- which pre-loads the named relations with one query per relation instead of one per record.Phalcon\Mvc\Model\Criteria::eager()exposes the same on the criteria surface. #17331 [doc] - Added
candidatesFor()to thePhalcon\Contracts\ADR\Router\Routercontract and toPhalcon\ADR\Router\Router. It returns every Action class the convention router would try for a given HTTP method and path, in the order it tries them. #17403 [doc]
Fixed
- Fixed
Phalcon\Http\Response\Cookies::delete()not deleting a cookie that was not set in the same request; it now falls back to the$_COOKIEsuperglobal.Phalcon\Http\Cookie::delete()expires the cookie with its storedpathanddomaininstead of the defaults. #17395 [doc]
6.0.0 beta 1 (2026-07-24)
Fixed
- Fixed
Phalcon\Mvc\Model::assign()skipping any value that isnull, because the incoming data was tested withisset(). Anullis a value the caller asked to assign, sorefresh()could not restore a column toNULLandassign(["column" => null])was a no-op; the check now usesarray_key_exists(). #17331 [doc] - Fixed
Phalcon\Container\Definition\ServiceDefinition::resolveArgs()treating any constructor-argument object that merely exposes aresolve()method as a lazy value, usingmethod_exists(). BecausePhalcon\Container\Containerdefines a privateresolve(), autowiring a service whose constructor receives the container - for example__construct(?Container $container), asPhalcon\ADR\Applicationdoes - mistook the injected container for a lazy resolvable and called its privateresolve(), raisingError: Call to private method Phalcon\Container\Container::resolve() from scope Phalcon\Container\Definition\ServiceDefinition. The lazy check now testsinstanceof Phalcon\Contracts\Container\Resolver\Resolvable. #17391
6.0.0 alpha 6 (2026-07-22)
Changed
- Changed
Phalcon\ADR\Applicationinto a self-contained composition root: it owns (or accepts) aPhalcon\Container\Containerand exposes a small registration surface -bind(),define(),factory(),set(),extend()andgetContainer()- plussetBaseNamespace()andsecureWith()for convention-router and namespace-prefix guard configuration.Phalcon\ADR\Front\AbstractHttpFrontgained a protectedgetApplication()hook returningPhalcon\Contracts\ADR\Application, so a front controller can configure the application or wire a different implementation. #17389 [doc]
6.0.0 alpha 5 (2026-07-21)
Added
- Added the Action-Domain-Responder (ADR) HTTP stack under
Phalcon\ADR, an alternative to MVC that splits request handling into three focused roles: an Action (one invokable class per route) drives a Domain (your business logic, which returns aPhalcon\ADR\Payload\Payloadand never touches HTTP) and hands the result to a Responder that turns it into a response.Phalcon\ADR\Application::handle()routes the request with the convention-basedPhalcon\ADR\Router\Router- the HTTP method, resource and optional operation resolve the Action class (e.g.GET /invoices/listmaps toMyApp\Action\Invoices\GetInvoicesList), with no route table - writes the matched positional attributes onto the request, and runs the Action throughPhalcon\ADR\Dispatcher, which resolves it from the container and wraps it in a middleware pipeline (Phalcon\ADR\Middleware\CorsMiddleware,MethodOverrideMiddleware,RequestIdMiddlewareandTimingMiddlewareship built-in). The Action reads request data through the extendablePhalcon\ADR\Input\Inputbag and returns a response built by a responder -Phalcon\ADR\Responder\JsonResponder,TextResponder,RedirectResponder,StatusResponderand the composableChainResponder/FormatResponder- each mapping the payload’sPhalcon\ADR\Payload\Statusto an HTTP status viaPhalcon\ADR\Responder\StatusMapper. Any escapingThrowableis turned into a response by the always-wiredPhalcon\ADR\ErrorResponder, andPhalcon\ADR\Emitter\SapiEmittersends it to the client.Phalcon\ADR\Front\HttpFront- aPhalcon\Contracts\Front\FrontControllerfollowing the front-interop contract - boots the whole stack with a singlerun(), andPhalcon\ADR\Container\AdrProviderregisters every service. Because route attributes are positional,Phalcon\Http\Request\Bag\AbstractBagnow accepts integer keys alongside string keys. Contracts live underPhalcon\Contracts\ADR. #17341 [doc] - Added request attributes support to
Phalcon\Http\Request.Phalcon\Http\Request::getAttributes()returns aPhalcon\Http\Request\Bag\AttributeBag, a mutable, string-keyed bag of arbitrary application-defined values attached to the request during its lifecycle (router, dispatcher, security components etc.). Writing with anullkey (the$bag[] = ...append form) throws the newPhalcon\Http\Request\Exceptions\NullKeyException, since bag elements are always string-keyed. #17367 [doc]
Fixed
- Fixed
Phalcon\Mvc\Modelignoring attributes registered withskipAttributes(),skipAttributesOnCreate()andskipAttributesOnUpdate(), so a skipped column was emitted in the generatedINSERT/UPDATE(breaking, for instance, inserts into a table with a MySQL generated column). The skip list is keyed withnullvalues, whichisset()reports as absent, so every skipped attribute read as not registered; the checks indoLowInsert(),doLowUpdate()and the not-null validation now usearray_key_exists(). #17382 [doc] - Fixed
Phalcon\Mvc\Modelinserting a literalnullfor a column the database can supply a value for, instead of theDEFAULTkeyword (or omitting the column on an adapter withoutDEFAULTsupport, such as SQLite). A nullable column carrying no explicit default is registered in the metadata default values with anullvalue, which theisset()check indoLowInsert()read as absent; it now usesarray_key_exists(). This makes inserts work against a MySQLGENERATED ALWAYS AS (...) STOREDcolumn, which rejects an explicitnullwithSQLSTATE[HY000]: General error: 3105but acceptsDEFAULT. #17382 [doc]
6.0.0 alpha 4 (2026-07-13)
Changed
- Converted the internal test suite to the
phalcon/talontesting framework and added octocov coverage reporting. #769
Added
- Added
Phalcon\Encryption\Security\JWT\Validator::validateSubject(), which compares the token’ssubclaim against the expected subject and reportsValidation: incorrect subjecton a mismatch. Anullsubject expresses no expectation and is skipped. #17361 [doc] - Added
Phalcon\Filter\Validation::setDefaultMessages()andPhalcon\Filter\Validation::getDefaultMessage()for registering global default validator failure messages keyed by validator class name (e.g.Validation::setDefaultMessages([PresenceOf::class => 'Default message :field is required'])). A registered default overrides a validator’s built-in class default message, while a message set on the validator instance (the constructormessage/templateoption orsetTemplate()) still takes precedence; it applies to validators whose message is produced throughgetTemplate()/messageFactory(). #17257 [doc] - Added
Phalcon\Mvc\Model\Query::setResultsetRowClass()andPhalcon\Mvc\Model\Query::getResultsetRowClass()to control the class used to hydrate rows that are not mapped to a model (custom-columnSELECTs and joins). When set, those result rows are built as the given subclass ofPhalcon\Mvc\Model\Rowinstead ofRowitself, on both the simple and complex resultset paths. The class must exist and be a subclass ofPhalcon\Mvc\Model\Row, otherwisePhalcon\Mvc\Model\Query\Exceptions\ResultsetRowClassNotFoundorPhalcon\Mvc\Model\Query\Exceptions\InvalidResultsetRowClassis thrown. #17337 [doc] - Added
Phalcon\Mvc\Model\Query\Builder::setResultsetRowClass()andPhalcon\Mvc\Model\Query\Builder::getResultsetRowClass()so the custom resultset row class can be set on a query builder, which forwards it to thePhalcon\Mvc\Model\Queryit produces ingetQuery(). BecausePhalcon\Paginator\Adapter\QueryBuilderbuilds its query through the builder,paginate()now returns the givenPhalcon\Mvc\Model\Rowsubclass for its non-model result rows. #17337 [doc] - Added an opt-in “sticky” read/write connection mode to
Phalcon\Mvc\Model\Manager. AfterPhalcon\Mvc\Model\Manager::setSticky(true), once a model has written to its write connection during the current request cycle, any further reads for that write service are served from the write connection, so data written earlier in the request can be read back immediately. Writes are recorded via the newPhalcon\Mvc\Model\Manager::registerWrite()(called internally on a successful insert/update/delete), andPhalcon\Mvc\Model\Manager::resetConnectionState()clears the per-request tracking for long-running runtimes (e.g. Swoole, RoadRunner) that reuse the manager across requests. Sticky is off by default, preserving the existing read/write split; the transaction connection still takes precedence. The three methods are added toPhalcon\Mvc\Model\ManagerInterface. #17256 [doc]
Fixed
- Fixed the model
Annotationsmetadata strategy (Phalcon\Mvc\Model\MetaData\Strategy\Annotations) to read the#[Column]skip and empty-string flags using the attribute constructor’s camelCase argument names (skipOnInsert,skipOnUpdate,allowEmptyString); it previously looked for snake_case keys (skip_on_insert,skip_on_update,allow_empty_string) that never match a valid#[Column]usage, so those flags had no effect. [doc] - Fixed
Phalcon\Annotations\Router\Route(and its#[Get],#[Post], … subclasses) to declare thebeforeMatchconstructor argument thatPhalcon\Mvc\Router\Annotationsalready applies; instantiating the attribute withbeforeMatch:previously raised an unknown-named-parameter error. [doc] - Fixed
Phalcon\Encryption\Security\JWT\Token\Token::validate()throwingPhalcon\Encryption\Security\JWT\Exceptions\InvalidAudienceTypewhen handed a freshly constructedPhalcon\Encryption\Security\JWT\Validator, which made a defaultValidatorimpossible to pass to it. #17361 [doc] - Fixed
Phalcon\Encryption\Security\JWT\Validator::validateIssuedAt()andPhalcon\Encryption\Security\JWT\Validator::validateNotBefore()rejecting a token whoseiat/nbfclaim falls on exactly the validated timestamp. #17361 [doc] - Fixed
Phalcon\Mvc\Model\Query::executeUpdate()raising a PDOInvalid parameter number: mixed named and positional parameterserror for a PHQLUPDATEwhoseSETclause is an expression carrying a bound placeholder (e.g.SET col = col + :inc:): the named placeholder is now resolved from the bind parameters and inlined into the expression before thePhalcon\Db\RawValueis built, so it no longer collides with the positional?marker of the primary-keyWHEREclause, and the placeholder is removed from the bind parameters forwarded to the pre-updateSELECT. #16976 [doc] - Fixed the PHP 8.4/8.5 deprecation notices raised by the framework: removed the
imagedestroy()calls inPhalcon\Image\Adapter\Gd(a no-op since PHP 8.0), thefinfo_close()calls inPhalcon\Http\Request\FileandPhalcon\Filter\Validation\Validator\File\MimeTypeand theReflectionProperty::setAccessible()call inPhalcon\Support\Debug\Dump(no-ops since PHP 8.1), clamped the random pad byte inPhalcon\Encryption\Crypt\Padding\Iso10126tochr(rand() % 256)to avoid the out-of-rangechr()deprecation on PHP 8.5, and guardedPhalcon\Messages\Messages::offsetSet()against an implicitnullarray offset. #17253 [doc]
Removed
- Removed the deprecated
Serializableinterface fromPhalcon\Mvc\ModelandPhalcon\Mvc\Model\Resultset(deprecated by PHP 8.1); the__serialize()and__unserialize()magic methods remain, so model and resultset serialization is unchanged. #17253 [doc]
6.0.0 alpha 3 (2026-06-29)
Changed
- Changed
Phalcon\Acl\Adapter\Memoryso a freshly constructed adapter returns an empty array instead ofnullfromgetRoles(),getComponents()andgetInheritedRoles(). #17220 [doc] - Deprecated
Phalcon\Acl\Adapter\Memory::getActiveKey()(usegetActiveRole(),getActiveComponent()andgetActiveAccess()) and the legacy ACL interfacesPhalcon\Acl\Adapter\AdapterInterface,Phalcon\Acl\RoleInterface,Phalcon\Acl\ComponentInterface,Phalcon\Acl\RoleAwareInterfaceandPhalcon\Acl\ComponentAwareInterfacein favour of theirPhalcon\Contracts\Acl\...equivalents. #17220 [doc] - Changed the
Phalcon\Authlayer to throw granularPhalcon\Auth\Exceptions\*subclasses instead of the basePhalcon\Auth\Exception:AccessNotRegistered,ActiveAccessRequired,DefaultGuardNotRegisteredandGuardNotDefined(Phalcon\Auth\Manager),UnknownAdapterandUnknownGuard(Phalcon\Auth\ManagerFactory),OptionRequiresArrayandOptionRequiresString(fromOptions()option parsing),SessionNamesMustDiffer(Phalcon\Auth\Guard\Config\SessionGuardConfig), andMissingHandlerContext(Phalcon\Auth\Access\Acl). Each extendsPhalcon\Auth\Exception, so existingcatchblocks keep working. #17220 [doc] - Changed the
Phalcon\Autharray adapters (Memory,Stream) to compare non-password credential fields against configured row values as strings, so string input from a request (e.g.'1') matches a typed row value (e.g.1ortrue) instead of failing a strict type comparison. #17220 [doc] - Note:
Phalcon\Auth\ManagerFactoryvalidates the required guard configuration up front and throws aPhalcon\Auth\Exceptionsubclass on a missing key, where earlier versions emitted a PHP notice followed by aTypeError; handlers that caughtTypeErrorthere should catchPhalcon\Auth\Exceptioninstead. #17220 [doc] - Changed
Phalcon\Support\Debuginto a thin coordinator that delegates exception-data collection to the newPhalcon\Support\Debug\ReportBuilderand HTML rendering to aPhalcon\Contracts\Support\Debug\Renderer(defaultPhalcon\Support\Debug\Renderer\HtmlRenderer), and exposesgetRenderer()/setRenderer()to swap the renderer. #17202 [doc] - Changed
Phalcon\Support\DebugandPhalcon\Support\Debug\Dumpto render from named, overridable template strings (the newPhalcon\Contracts\Support\Debug\TemplateAwarecontract withgetTemplate()/setTemplate()) filled by the interpolator, instead of inline string concatenation. #17202 [doc] - Changed the
Phalcon\Support\Debugexception page to a redesigned, asset-driven layout (masthead with the Phalcon logo, error card, tabbed Request/Server/Included Files/Memory/Variables context, and collapsible backtrace frames);getCssSources()andgetJsSources()now reference a singledebug.cssanddebug.jsinstead of the bundled jQuery, jQuery-UI and prettify assets. #17202 [doc] - Changed
Phalcon\Support\Debug::getVersion()to return a compact version badge anchor (v<version>) instead of the previous “Phalcon Framework” version block. #17202 [doc] - Changed the
Phalcon\Support\DebugMemory panel to report both real and peak memory usage. #17202 [doc] - Refactored the read path of model hydration by extracting
Phalcon\Mvc\Model::cloneResultMapHydrate()into the dedicatedPhalcon\Mvc\Model\Hydration\CloneResultMapHydrateclass and the case-insensitive column-map lookup intoPhalcon\Mvc\Model\Hydration\CaseInsensitiveColumnMap. #17228 [doc]
Added
- Added
Phalcon\Acl\Adapter\Storage, a storage-backed ACL adapter that persists the entire policy as a versioned, serializer-agnostic snapshot to anyPhalcon\Storagebackend (Redis, Apcu, Stream, Memcached) and reloads it on construction, defined by the newPhalcon\Contracts\Acl\Adapter\Persistablecontract (save()/load()). Callable (closure) rules are not serializable, so they are persisted asDENY(fail closed) and must be re-registered afterload();load()returnsfalsefor a snapshot without a version marker and throwsPhalcon\Acl\Exceptions\InvalidSnapshoton an incompatible version or a malformed structure. Single-writer contract:save()writes the whole snapshot (last-write-wins; use external locking for concurrent writers). #17220 [doc] - Added
Phalcon\Acl\Exceptions\InvalidSnapshot, thrown byPhalcon\Acl\Adapter\Storage::load()on an incompatible or malformed policy snapshot. #17220 [doc] - Added the
Phalcon\Contracts\Aclcontracts -Phalcon\Contracts\Acl\Adapter\Adapter,Phalcon\Contracts\Acl\Adapter\Persistable,Phalcon\Contracts\Acl\Role,Phalcon\Contracts\Acl\Component,Phalcon\Contracts\Acl\RoleAwareandPhalcon\Contracts\Acl\ComponentAware- as the canonical homes for the ACL interfaces; the legacyPhalcon\Acl\...\*Interfacetypes remain as deprecated bridges that extend them. #17220 [doc] - Added the granular
Phalcon\Auth\Exceptions\*exceptionsAccessNotRegistered,ActiveAccessRequired,DefaultGuardNotRegistered,GuardNotDefined,MissingHandlerContext,OptionRequiresArray,OptionRequiresString,SessionNamesMustDiffer,UnknownAdapterandUnknownGuard. #17220 [doc] - Added the
Phalcon\Contracts\Support\Debug\TemplateAwareandPhalcon\Contracts\Support\Debug\Renderercontracts, thePhalcon\Support\Debug\ReportBuilderandPhalcon\Support\Debug\Renderer\HtmlRendererclasses, thePhalcon\Support\Debug\Traits\TemplateAwareTraittrait, and the value objectsPhalcon\Support\Debug\Report\ExceptionReportandPhalcon\Support\Debug\Report\BacktraceItem. #17202 [doc] - Added
Phalcon\Support\Debug::getRenderer()andPhalcon\Support\Debug::setRenderer(). #17202 [doc] - Added the
Phalcon\Queuecomponent, a first-class queue/messaging layer modeled on the queue-interop contracts, with thePhalcon\Contracts\Queue\*interfaces (ConnectionFactory,Context,Destination,Queue,Topic,Producer,Consumer,SubscriptionConsumer,Message,Processor,VisibilityAware) and thePhalcon\Queue\Exceptions\*hierarchy (QueueThrowable,Exceptionand the typedInvalid*/*NotSupportedExceptionexceptions). #17051 [doc] - Added the Memory and Stream queue adapters (
Phalcon\Queue\Adapter\Memory\*, in-process FIFO;Phalcon\Queue\Adapter\Stream\*, file-per-queue withflock). #17051 [doc] - Added the Redis queue adapter (
Phalcon\Queue\Adapter\Redis\*) with list-backed FIFO delivery (LPUSH/BRPOP), sorted-set delivery delay and native blocking receive. #17051 [doc] - Added the Beanstalk queue adapter (
Phalcon\Queue\Adapter\Beanstalk\*) over a dependency-free socket client, with native delivery delay and priority and aVisibilityAwareconsumer (touch()). #17051 [doc] - Added the
Phalcon\Contracts\Queue\Inspectablecontract (getStats(Queue $queue): array), implemented byPhalcon\Queue\Adapter\Beanstalk\BeanstalkContext, exposing the Beanstalkdstats-tubefields (current-jobs-ready,current-jobs-reserved,current-jobs-delayed,current-jobs-buried,current-jobs-urgent,total-jobs, thecmd-*counters, …) for queue backlog/depth monitoring. The returned array is adapter-native; thecurrent-jobs-*keys are always present (zero for an unknown tube) and the read runs on its own short-lived connection. Backed by a newPhalcon\Queue\Adapter\Beanstalk\BeanstalkConnection::statsTube()wire command. #17209 [doc] - Added the
Phalcon\Queue\AdapterFactoryandPhalcon\Queue\QueueFactoryfactories, and registered thequeueFactoryservice inPhalcon\Di\FactoryDefaultandPhalcon\Di\FactoryDefault\Cli. #17051 [doc] - Added the queue consumer runner (
Phalcon\Queue\Consumer\QueueConsumer,Worker,WorkerOptions,BoundProcessor,Events) and the CLI consumer taskPhalcon\Queue\Cli\ConsumerTask. #17051 [doc] - Added connection-liveness and opt-in auto-reconnect support to
Phalcon\Db\Adapter\Pdo\AbstractPdo:ping()(aSELECT 1probe),ensureConnection()(reconnect in place when the probe fails), andsetAutoReconnect()/getAutoReconnect()(also settable via theautoReconnectdescriptor key). When auto-reconnect is enabled and a query fails on a lost (“gone away”) connection outside a transaction,execute()andquery()fire the newdb:connectionLostevent, reconnect, and retry the statement once; a loss inside a transaction is re-thrown without retry. “Gone away” detection is provided per driver byPhalcon\Db\Adapter\Pdo\Mysql(error codes 2006/2013) andPhalcon\Db\Adapter\Pdo\Postgresql(SQLSTATE 08003/08006/57P01-03), with a message fallback. #17204 [doc] - Added the same liveness and opt-in auto-reconnect support to
Phalcon\DataMapper\Pdo\Connection(ping(),ensureConnection(),setAutoReconnect()/getAutoReconnect()), wrappingexec(),perform(),prepare(), andquery()with the single-retry behavior. This connection has no events manager, so nodb:connectionLostevent is fired; “gone away” detection is driver-agnostic and the in-transaction guard uses a locally tracked transaction level. #17204 [doc]
Fixed
- Fixed
Phalcon\Authlogin timing leaking account existence: the credential adapters now perform a throwaway password hash on the user-not-found path, so an attempt for an unknown identifier costs the same as one for a real account with a wrong password (mitigates login-timing user enumeration). #17220 [doc] - Fixed
Phalcon\Mvc\Model::cloneResultMap()calling model setters during ORM hydration unconditionally (introduced in 5.12.0 via #14810), which ran user setters on every record hydrated byfind()/findFirst(); a setter that issued an ORM query (e.g.self::findFirstByEmail()) recursed infinitely, asfindFirst()re-enteredcloneResultMap(), which re-invoked the setter, which calledfindFirst()again. Hydration setters are now gated by a dedicatedorm.call_setters_on_hydrationsetting (defaultfalse), decoupled fromorm.disable_assign_setters(which still governsassign()); this restores the pre-5.12.0 hydration behavior by default and makes setter execution during hydration opt-in. #17214 [doc] - Fixed
Phalcon\Mvc\View\Engine\Volt\Compiler::resolveFilter()building thejoinfilter by splicing the raw separator and array argument token values into the generated PHP - the separator dropped between two literal single quotes and the array emitted unquoted - instead of compiling them throughexpression()as every other Volt literal is. Ajoinseparator literal containing a single quote closed the generatedjoin('...')call and injected arbitrary statements into the compiled template, which the Volt engine then ran when the view was rendered. Both arguments are now emitted throughexpression(), which quotes and escapes the separator. [doc] - Fixed
Phalcon\Support\Debugignoring therequestentry ofsetBlacklist():$_REQUESTis now filtered against therequestblacklist, where previously both superglobals were filtered against theserverblacklist only. #17202 [doc] - Fixed
Phalcon\Tag\Select::selectField()to invoke the resultsetusingrender callback only when it is aClosure(previously any object), keeping the dynamically invoked callable out of reach of user-controlled data. #17210 - Fixed
Phalcon\Forms\Element\AbstractElement::render()to cast a non-nullelement value tostringbefore passing it to the input helper, so a numeric default set viasetDefault()(e.g.setDefault(10)orsetDefault(10.5)on aPhalcon\Forms\Element\Numeric) renders asvalue="10"instead of raising aTypeErrorfor passing anint/floatto the helper’sstring$valueparameter. #17232 [doc] - Fixed
Phalcon\Http\Response::getStatusCode()andPhalcon\Http\Response::getReasonPhrase()raising aTypeError(substr(): Argument #1 ($string) must be of type string, bool given) when noStatusheader had been set (e.g. a response built with onlysetContent()), becausePhalcon\Http\Response\Headers::get('Status')returnsfalsefor an absent header; the header value is now cast to string beforesubstr(), so both methods returnnullas documented. #17248 [doc]