Skip to content

Changelog

The changes of each release of Phalcon 5.14.

The changes of each release that this documentation covers, newest first. The source is CHANGELOG-5.0.md of the repository.

5.14.2 (2026-06-12)

Tools

  • Zephir Parser v2.0.4
  • Zephir 0.23.0 (development - 27535f802)

Changed

  • Changed Phalcon\Cli\Console::handle() to process module definitions the same way as Phalcon\Mvc\Application::handle(). The module is now resolved through the inherited getModule(), so an unregistered module throws Phalcon\Application\Exceptions\ModuleNotRegistered (as Console::getModule() already did) instead of Phalcon\Cli\Console\Exceptions\ConsoleModuleNotRegistered. Closure module definitions are now supported and are invoked with the container, matching MVC. A definition that is neither an array nor a Closure throws the new Phalcon\Cli\Console\Exceptions\InvalidModuleDefinition instead of InvalidModuleDefinitionPath. #17107
  • Changed Phalcon\Config\Adapter\Ini::parseIniString() to use Phalcon\Config\Config::DEFAULT_PATH_DELIMITER for the key nesting separator instead of a hardcoded . (no behavior change). #17134
  • Changed Phalcon\Config\Adapter\Json and Phalcon\Config\Adapter\Php to throw Phalcon\Config\Exceptions\CannotLoadConfigFile when the configuration file cannot be read, instead of failing inside the JSON decoder (Json) or with a fatal require error (Php). All file based Config adapters now share the same failure contract. #17134
  • Changed Phalcon\Config\ConfigFactory to resolve adapter-specific constructor arguments (mode for ini, callbacks for yaml) through a single internal parameter map consulted by both load() and newInstance(), instead of two hardcoded switches. load() now also resolves the yml adapter name / file extension to the yaml adapter. #17134
  • Consolidated the allowEmpty handling of Phalcon\Filter\Validation into the validator (Phalcon\Filter\Validation\AbstractValidator::isAllowEmpty()). The per-field allowEmpty map is also honored. #17124
  • Moved the resolution of an array attribute option from Phalcon\Filter\Validation\AbstractValidator::getOption() into Phalcon\Filter\Validation\Validator\Uniqueness::getOption(). #17124

Added

  • Added Phalcon\Filter\Filter::getDefaultMapper(), for mapper services used also by Phalcon\Filter\FilterFactory::getServices(). #17124
  • Added Phalcon\Filter\Validation\Validator\File\Resolution\AspectRatio, validating that an uploaded image has an exact aspect ratio. The ratio option uses the 16x9 format (per-field array form supported) and is compared with integer cross-multiplication, so the dimensions must match exactly: 1920x1080 matches 16x9, 1366x768 does not. Also available through the composite Phalcon\Filter\Validation\Validator\File via the aspectRatio and messageAspectRatio options. #17104
  • Added SessionUpdateTimestampHandlerInterface support to the Phalcon\Session adapters (Noop, Stream, Redis, Libmemcached), enabling PHP’s session.lazy_write (on by default): when the session data is unchanged at close, PHP now calls updateTimestamp() instead of write(). Stream touches the session file without rewriting its data; Redis and Libmemcached delegate to write() to refresh the TTL. With session.use_strict_mode enabled, the new validateId() rejects uninitialized session ids. #17129
  • Added a stripPrefix option (default true) to the Phalcon\Storage / Phalcon\Cache adapters, controlling whether a leading prefix is stripped from incoming keys (the behavior introduced for #17089). Phalcon\Session\Adapter\Redis and Phalcon\Session\Adapter\Libmemcached disable it by default: session ids are externally generated, so an id that happens to start with the prefix text must not collide with another session. #17127
  • Added an optional Phalcon\Config\ConfigFactory constructor parameter to Phalcon\Config\Adapter\Grouped. The factory is created once and reused for every configuration fragment, so custom adapters registered on a supplied factory are now visible when loading grouped configurations. #17134
  • Added dialect-specific operators to PHQL: @@, @>, <@, &&, ||, ->, ->>, #>, #>>. Each is parsed into a binary expression and emitted only by the dialects that support it (PostgreSQL: all nine; MySQL: ->, ->>; SQLite: ||, ->, ->>); using an operator on a dialect that does not support it throws Phalcon\Db\Exceptions\UnsupportedOperator. The jsonb existence operators (?, ?|, ?&, @?) and the ~ regex family are intentionally unsupported - use their function equivalents (e.g. jsonb_exists(), regexp_like()). #14954 #14579
  • Added geometry value objects under Phalcon\Db\Geometry (Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection) and read-side hydration of spatial columns. When orm.cast_on_hydrate is enabled, spatial column values (MySQL WKB / PostGIS EWKB) are decoded into these objects on model read; otherwise the raw value is returned unchanged. #17110 #14769 #13670
  • Added opt-in session locking to Phalcon\Session\Adapter\Redis, preventing concurrent requests from racing on the same session (stale reads / lost writes). When enabled with the new lockingEnabled constructor option, read() acquires a per-session lock (SET NX EX, retried with pauses) and close() / destroy() release it with a token-guarded delete, so an adapter can only remove a lock it still owns. A read that cannot acquire the lock throws Phalcon\Session\Adapter\Exceptions\AdapterRuntimeError. Tunable via the lockExpiry (lock TTL in seconds, default 30), lockRetries (maximum attempts, default 100) and lockWaitTime (microseconds between attempts, default 50000) options. Locking is off by default. #17126
  • Added table comment support to the MySQL and PostgreSQL dialects. Comment values are single-quote escaped (the existing PostgreSQL column-comment emission is now escaped as well). SQLite has no native table comment and ignores the option. #15258
  • Added the Phalcon\Contracts\Filter\Sanitizer interface and moving array recursion in Phalcon\Filter\Filter::sanitize(). #17124

Fixed

  • Fixed Phalcon\Config\Config::cloneEmpty() so that filter(), map(), sort() and where() no longer fail on adapter instances (Ini, Json, Php, Yaml, Grouped). The override clones the current instance and replaces its data instead of invoking the adapter constructor with the parent (array $data, ...) signature. #17134
  • Fixed Phalcon\Config\Config::merge() emptying the configuration before validating its argument. Invalid merge data still throws Phalcon\Config\Exceptions\InvalidMergeData, but the current configuration now survives intact. #17134
  • Fixed Phalcon\Config\Config::setData() bypassing the Phalcon\Support\Collection runtime type guard: a type passed to the constructor is now enforced on leaf values at every nesting depth (arrays become nested Config objects, which validate their own leaves). Nested Config objects also inherit the strictNull and type flags in addition to insensitive. #17134
  • Fixed Phalcon\Http\Cookie::send() fataling when the cookie has a non-empty definition and no DI container is set. The session integration (service lookup, started check, and the _PHCOOKIE_ key convention) is now consolidated in private getStartedSession()/getSessionKey() helpers shared by delete(), restore() and send(). #17127
  • Fixed Phalcon\Mvc\Model::groupResult() declaring a Phalcon\Mvc\Model\ResultsetInterface return type while returning a scalar (int, float, string, or null) for non-grouped aggregate queries (count(), sum(), average(), maximum(), minimum()). The return type declaration has been removed (@return int|float|string|null|ResultsetInterface), so model subclasses can override groupResult() without risking a TypeError. #17114
  • Fixed Phalcon\Mvc\Model::save() and Phalcon\Mvc\Model::update() to run the record-existence check on the write connection instead of the read connection. On master-replica setups, replication lag could make the check miss a row already written to the master, causing save() to attempt an INSERT instead of an UPDATE, or update() to fail with Record cannot be updated because it does not exist. create() has used the write connection since #14256. #17105
  • Fixed Phalcon\Session\Bag calling getDI() on its Phalcon\Session\ManagerInterface constructor parameter - a method the interface does not declare - which fataled for any manager implementing only the interface. The container is now captured only when the manager provides one. #17127
  • Fixed Phalcon\Session\Manager::start() deleting valid session cookies when session.sid_bits_per_character is 6: the cookie sanity check now accepts the full PHP session ID alphabet ([a-zA-Z0-9,-]) instead of alphanumerics only. #17127
  • Fixed the Volt parser raising Syntax error, unexpected token DEFAULT when the default filter (e.g. {{ value|default('text') }}) is used inside a {% switch %} block. The word default is now treated as the {% default %} clause only when it directly follows the opening {% delimiter inside a switch; everywhere else it is parsed as a plain identifier, so the filter, {{ default }} and {% set default = ... %} all work inside switch-case blocks. #16003
  • Fixed the Phalcon\Storage / Phalcon\Cache adapters to accept keys already carrying the adapter prefix, so keys returned by getKeys() can be passed straight back to get(), has(), delete(), deleteMultiple(), set(), setForever(), increment() and decrement(). Phalcon\Storage\Adapter\AbstractAdapter now strips a leading prefix from incoming keys. #17089
  • Fixed the alternative installation script (build/install) to set the installed phalcon.so to mode 0644 after make install. The PHP build system installs shared extensions with the install default mode 0755; shared objects only need read permission. #17113

Removed

  • Removed Phalcon\Cli\Console\Exceptions\ConsoleModuleNotRegistered and Phalcon\Cli\Console\Exceptions\InvalidModuleDefinitionPath, superseded by Phalcon\Application\Exceptions\ModuleNotRegistered and Phalcon\Cli\Console\Exceptions\InvalidModuleDefinition. #17107

5.14.1 (2026-06-08)

Tools

  • Zephir Parser v2.0.4
  • Zephir 0.23.0 (development - bae82f7bd)

Changed

  • Consolidated the Phalcon\Auth dual-container handling (new Phalcon\Container\Container vs legacy Phalcon\Di\Di) behind a single internal Phalcon\Auth\Internal\ContainerResolver. #17088 [doc]
  • Renamed the private Phalcon\Events\Manager dispatch hot-loop helper to runQueue(). #17006 [doc]
  • Reworked the Phalcon\Auth access gates into Specification-style policies. Phalcon\Contracts\Auth\Access\Access::isAllowed() now receives the current identity and the request context: isAllowed(Guard $guard, string $actionName, array $context = []), where context carries handler (controller / task / Micro component name), module (MVC module, when present), and params (dispatcher or route parameters). #17088 [doc]
  • Phalcon\Auth\Manager::access() now resolves gates through Phalcon\Auth\Access\AccessLocator from the container instead of constructing them directly. #17088 [doc]

Added

  • Added Phalcon\Auth\Access\Acl - an ACL-backed access gate that incorporates the role-based authorization of the old Firewall component (#14630) into the Auth layer. The gate checks the authenticated user’s role against a Phalcon\Acl\Adapter\AdapterInterface: the ACL component is the handler context key (prefixed with module and a configurable separator when present), the ACL access is the action name, and params are passed through to callable ACL rules. Unauthenticated requests resolve to a configurable guest role (default guest); authenticated users supply their role via Phalcon\Acl\RoleAwareInterface. #17088 [doc]
  • Added Phalcon\Auth\Micro\AuthMicroListener to enforce the active Auth access gate on Phalcon\Mvc\Micro route execution (attach to the micro event space).#17088 [doc]
  • Added Phalcon\Events\Manager::dispatch(object $event, string|array|null $name = null, ?object $source = null) for object/class-based event dispatch built on Phalcon’s own Phalcon\Contracts\Events\Stoppable. Listeners are routed by an explicit name (a string, or a [class, method] array) or by the event’s class name and receive the event object. #17006 [doc]
  • Added beforeBind and afterBind hook methods to Phalcon\Forms\Form. When defined on a form subclass, beforeBind(array $data, ?object $entity) runs at the start of bind() (returning false cancels the bind) and afterBind(?object $entity) runs after the data has been assigned. Both also fire when bind() is reached through isValid(). #14598 [doc]
  • Added a sync option to many-to-many (hasManyToMany) relations and a chainable Phalcon\Mvc\Model::setSync() method to synchronize related records on save. When enabled, saving deletes the intermediate rows for records no longer present in the assigned array (add/update/delete), instead of only appending. #17071 [doc]
  • Added a trace() method to Phalcon\Logger\Logger together with a new TRACE log level (value 9, label trace). #17047 [doc]
  • Added a {% verbatim %}/{% endverbatim %} tag to Volt. Its body is emitted exactly as written, without being parsed by Volt, so {{ ... }}, {% ... %}, {# ... #} and constructs such as <?xml ... ?> or client-side templates (Handlebars, Mustache, Angular) pass through untouched. #17085 [doc]
  • Added support for JOIN clauses in PHQL UPDATE statements (e.g. UPDATE Invoices INNER JOIN Customers ON ... SET ... WHERE Customers.cst_id = :id:). The join is used to filter the records to update; the statement still targets a single model. #16984 [doc]

Fixed

  • Fixed PHQL parser cache to use string-keyed lookups (zend_hash_str_find/zend_hash_str_update) instead of integer keys derived from zend_inline_hash_func, eliminating hash collisions that caused different PHQL queries to return identical cached ASTs #14791
  • Fixed Phalcon\Annotations\Reader failing to parse a docblock when an annotation argument is a string literal containing a parenthesis (e.g. @SomeAnnotation(key='value(')). The docblock pre-scan that locates each @Annotation(...) span counted every (/), including those inside quoted values, so an unbalanced parenthesis in a string consumed the rest of the comment and produced a “Scanning error”. #16084
  • Fixed Phalcon\Di\Injectable::__get() to no longer cache resolved services as dynamic object properties. Services accessed via magic properties (e.g. $this->request) are now re-resolved through the container on each access, so replacing or updating a service in the container is reflected in controllers, views, and other injectable classes. Properties already declared on the class continue to be populated. #17052
  • Fixed Phalcon\Encryption\Crypt::decrypt() to verify the HMAC tag with the constant-time hash_equals() instead of the identity operator, removing an observable timing discrepancy in the tag comparison (CWE-208, CWE-347) . The tag is now also verified before the decrypted text is unpadded, and truncated tags are rejected by the unequal-length path of hash_equals(). #17090 [doc]
  • Fixed Phalcon\Mvc\Model\Query\Builder::orderBy() when the array syntax is used with complex PHQL expressions. Previously any array item containing a space was split as a simple column direction pair, corrupting expressions such as CASE WHEN inv_status_flag = 1 THEN 0 ELSE 1 END ASC. The builder now only treats a trailing ASC/DESC as the direction (autoescaping a simple column) and preserves complex expressions verbatim. #17077
  • Fixed Phalcon\Mvc\Model\Query (PHQL) parsing of identifiers whose name begins with the NOT keyword. Columns, tables, and aliases such as notice_id were truncated to ice_id (the leading not was dropped), causing the database to report the column as unknown - most visibly in Phalcon\Mvc\Model\Query\Builder join conditions built via createBuilder(). The scanner’s re2c backtracking marker shared the token-start pointer, so the NOT BETWEEN rule advanced it past not; escaped identifiers containing internal escapes (e.g. [col\[0\]]) were corrupted by the same root cause. #16831 #17087
  • Fixed the compilation failure ('name_zv' undeclared) in Phalcon\Container\Container::callableGet() and callableNew(). Both closures captured the typed string name parameter directly via use (name). #17078
  • Fixed the build from emitting a warning for RedisCluster not being present at compile time. #2589 #16977

Removed

  • Removed the unfinished {% raw %}/{% endraw %} Volt tag. It never produced output (compilation threw UnknownVoltStatement) and its body was parsed rather than emitted literally. Use {% verbatim %} instead. #17085

5.14.0 (2026-06-04)

Tools

  • Zephir Parser v2.0.3
  • Zephir 0.22.0 (development - 9d2def774)

Changed

  • Alignment with v6; docblocks; sorting; return types; minor fixes (image watermark opacity calc, serializer/helpers, readonly-becoming-mutable, ACL local access). #17055
  • Changed return types to -> <static> or -> <self> in various components. The change is a covariant narrowing on implementation methods and does not touch any interface contracts, so userland classes that implement Phalcon interfaces and return the interface type continue to work unchanged. #17035
  • Internal performance work across Autoload, Dispatcher, Annotations, Db, Mvc\Model, Mvc\Model\Query, Tag, Assets, Acl\Adapter\Memory, Http\Request, Encryption\Crypt. Behavior preserved. #17049
  • Moved CI tools/scripts in resources/ removed unused ones #17066
  • Moved docker in resources/ #17066
  • Refactored docker images (more flexible less cruft) #17066
  • Reorganization of quality tool config files (in resources/) #17066
  • Phalcon\Autoload\Loader getters (getDirectories, getExtensions, getFiles) return arrays keyed by the value string instead of by a SHA256 hash of it; iteration order and contents are unchanged. #17049 [doc]
  • Phalcon\Mvc\Router::handle() internal optimizations: O(1) hash lookup for literal-URI routes; per-HTTP-method buckets; hot-loop reads; PCRE patterns chunked; per-route metadata cache deduplicated by route id. #17012 [doc]
  • Phalcon\Mvc\Router\Route::getCompiledHostName() now uses cache for hostname/converters. #17012 [doc]

Added

  • Added a new dependency-injection container under Phalcon\Container, with its contracts under Phalcon\Contracts\Container. It adds:
    • Phalcon\Container\Container / Phalcon\Container\ContainerFactory - the container and its factory, configured through Phalcon\Contracts\Container\Service\Provider providers (Phalcon\Container\Provider\Web, Phalcon\Container\Provider\Cli).
    • Phalcon\Container\Definition\ServiceDefinition - fluent service definitions with autowiring, factories, extenders, tags, aliases, and configurable service lifetimes (Phalcon\Container\Definition\ServiceLifetime).
    • Phalcon\Container\Resolver\Resolver - reflection-based constructor / method / parameter autowiring, plus the Phalcon\Container\Resolver\Lazy\* family for lazy resolution (Get, GetCall, NewInstance, Call, Env, CsEnv, ArrayValues, etc.).
    • Phalcon\Container\Exceptions\* - granular, per-cause exceptions (ServiceNotFound, CircularAliasFound, FrozenDefinition, CannotResolveParameter, NoProcessorFound, etc.). #16897 [doc]
  • Added a new authentication and authorization layer under Phalcon\Auth, with its contracts under Phalcon\Contracts\Auth. Built on top of Phalcon\Container, it adds:
    • Phalcon\Auth\Manager / Phalcon\Auth\ManagerFactory - the central manager that wires guards and access gates together, and its factory.
    • Phalcon\Auth\AuthUser - a lightweight user value object returned by array-backed adapters when no application model class is configured.
    • Guards under Phalcon\Auth\Guard - Session and Token (with AbstractGuard and UserRemember), resolved via Phalcon\Auth\Guard\GuardLocator and configured through Phalcon\Auth\Guard\Config\* (AbstractGuardConfig, SessionGuardConfig, TokenGuardConfig).
    • Adapters under Phalcon\Auth\Adapter - Memory, Model, and Stream user providers (with AbstractAdapter and AbstractArrayAdapter), resolved via Phalcon\Auth\Adapter\AdapterLocator and configured through Phalcon\Auth\Adapter\Config\* (AbstractAdapterConfig, MemoryAdapterConfig, ModelAdapterConfig, StreamAdapterConfig).
    • Access gates under Phalcon\Auth\Access - Auth and Guest (with AbstractAccess), resolved via Phalcon\Auth\Access\AccessLocator.
    • Dispatcher listeners Phalcon\Auth\Mvc\AuthDispatcherListener and Phalcon\Auth\Cli\AuthDispatcherListener (with Phalcon\Auth\AbstractAuthDispatcherListener) to guard MVC and CLI dispatch.
    • Phalcon\Auth\Exception plus granular Phalcon\Auth\Exceptions\* (AccessDenied, ConfigRequiresNonEmptyValue, DataMustContainIdKey, DoesNotImplement, FileCannotRead, FileDoesNotContainJson, FileDoesNotExist, FileNotValidJson).
    • Contracts under Phalcon\Contracts\Auth - Manager, AuthUser, AuthRemember, RememberToken, Access\Access, Adapter\Adapter, Adapter\AdapterConfig, Adapter\RememberAdapter, Guard\Guard, Guard\GuardConfig, Guard\GuardStateful, Guard\BasicAuth.
    • Phalcon\Support\AbstractLocator - the shared service-locator base extended by the guard, adapter, and access locators. #16273 [doc]
  • Added granular exception classes across the framework. Every namespace that previously surfaced failures through a single umbrella Phalcon\<Namespace>\Exception (or its sub-namespace counterpart) now ships per-cause classes under a sibling Exceptions/ folder. Each new class extends the existing per-namespace parent so catch (Phalcon\<Namespace>\Exception $e) continues to work unchanged. New classes:
    • Phalcon\Acl\Exceptions
      • AccessRuleNotFound
      • CircularInheritanceError
      • ElementNotFound
      • ForbiddenWildcard
      • InvalidAccessList
      • InvalidComponentImplementation
      • InvalidRoleImplementation
      • InvalidRoleType
      • MissingFunctionParameters
      • ParameterTypeMismatch
      • RoleNotFoundException
    • Phalcon\Annotations\Exceptions
      • AnnotationNotFound
      • AnnotationsDirectoryNotWritable
      • CannotReadAnnotationData
      • UnknownAnnotationExpression
    • Phalcon\Application\Exceptions
      • ModuleNotRegistered
    • Phalcon\Assets\Exceptions
      • AssetSourceTargetCollision
      • CannotReadAsset
      • CollectionNotFound
      • InvalidAssetSourcePath
      • InvalidAssetTargetPath
      • InvalidFilter
      • InvalidTargetPath
      • TargetPathIsDirectory
    • Phalcon\Autoload\Exceptions
      • LoaderDirectoriesNotArray
      • LoaderMethodNotCallable
    • Phalcon\Cache\Exception
      • CacheKeysNotIterable
      • InvalidCacheKey
    • Phalcon\Cli\Console\Exceptions
      • ConsoleModuleNotRegistered
      • ContainerRequired
      • InvalidModuleDefinitionPath
      • ModuleDefinitionPathNotFound
    • Phalcon\Cli\Router\Exceptions
      • BeforeMatchNotCallable
      • InvalidRoutePaths
      • RouterArgumentsInvalidType
    • Phalcon\Config\Exceptions
      • CannotLoadConfigFile
      • ConfigNotArrayOrObject
      • GroupedAdapterRequiresArray
      • InvalidMergeData
      • MissingConfigOption
      • MissingFileExtension
      • MissingYamlExtension
    • Phalcon\DataMapper\Pdo\Exception
      • DriverNotSupported
      • UnknownDriverMethod
      • UnknownQueryMethod
    • Phalcon\Db\Exceptions
      • CannotInsertWithoutData
      • CannotPrepareStatement
      • CheckExpressionRequired
      • ColumnTypeRejectsAutoIncrement
      • ColumnTypeRejectsScale
      • ColumnTypeRequired
      • ConflictTargetColumnRequired
      • ConflictUpdateColumnRequired
      • ForeignKeyColumnsRequired
      • GeneratedAutoIncrementConflict
      • GeneratedDefaultConflict
      • IncompleteBindTypes
      • InvalidBindParameter
      • InvalidCheckExpression
      • InvalidGenerationExpression
      • InvalidGroupByExpression
      • InvalidIndexColumns
      • InvalidIndexDirections
      • InvalidIndexWhere
      • InvalidListExpression
      • InvalidOrderByExpression
      • InvalidSqlExpression
      • InvalidSqlExpressionType
      • InvalidUnaryExpression
      • InvalidWhereConditions
      • MatchedParameterNotFound
      • MaterializedViewsNotSupported
      • MissingDefinitionKey
      • MissingForeignKeyChecks
      • MissingSqliteDatabase
      • MysqlOnConflictNotSupported
      • NestedTransactionChangeBlocked
      • NoActiveTransaction
      • ReferencedColumnCountMismatch
      • ReferencedColumnsRequired
      • ReferencedTableRequired
      • ReturningNotSupported
      • ReturningRequiresColumn
      • SavepointsNotSupported
      • SqliteAlterCheckNotSupported
      • SqliteAlterColumnNotSupported
      • SqliteAlterForeignKeyNotSupported
      • SqliteAlterPrimaryKeyNotSupported
      • SqliteDropCheckNotSupported
      • SqliteDropForeignKeyNotSupported
      • SqliteDropPrimaryKeyNotSupported
      • TableMustHaveColumn
      • UnrecognizedDataType
      • UpdateFieldCountMismatch
    • Phalcon\Di\Exceptions
      • AliasAlreadyInUse
      • AliasNameMustBeString
      • ArgumentTypeRequired
      • CallArgumentsMustBeArray
      • CircularAliasReference
      • ContainerRequired
      • DefinitionMustBeArrayForRead
      • DefinitionMustBeArrayForUpdate
      • MethodCallMustBeArray
      • MethodNameRequired
      • MissingClassNameParameter
      • MissingParameterKey
      • PropertyInjectionRequiresInstance
      • PropertyMustBeArray
      • PropertyNameRequired
      • PropertyValueRequired
      • ServiceCannotBeResolved
      • SetterInjectionRequiresInstance
      • SetterParametersMustBeArray
      • UnknownServiceType
    • Phalcon\Dispatcher\Exceptions
      • ForwardInInitializeForbidden
    • Phalcon\Encryption\Crypt\Exception
      • DecryptionFailed
      • EmptyDecryptionKey
      • EmptyEncryptionKey
      • EncryptionFailed
      • InvalidPaddingSize
      • IvLengthCalculationFailed
      • MissingAuthData
      • MissingOpensslExtension
      • RandomBytesGenerationFailed
      • UnsupportedAlgorithm
    • Phalcon\Encryption\Security\Exceptions
      • InvalidRandomInput
      • UnknownHashAlgorithm
    • Phalcon\Encryption\Security\JWT\Exceptions
      • EmptyPassphrase
      • InvalidAudience
      • InvalidAudienceType
      • InvalidClaims
      • InvalidExpirationTime
      • InvalidHeader
      • InvalidNotBefore
      • MalformedJwtString
      • MissingJwtTypHeader
      • UnsupportedHmacAlgorithm
      • WeakPassphrase
    • Phalcon\Events\Exceptions
      • EventNotCancelable
      • InvalidEventHandler
      • InvalidEventSource
      • InvalidEventType
      • InvalidSubscriberConfiguration
      • NoListenersForEvent
    • Phalcon\Filter\Exceptions
      • FilterNotRegistered
    • Phalcon\Filter\Validation\Exceptions
      • FieldNotPrintable
      • FilterServiceUnavailable
      • InvalidAllowedTypes
      • InvalidCallbackReturn
      • InvalidDomainOption
      • InvalidFieldType
      • InvalidFilterService
      • InvalidStrictOption
      • InvalidValidationData
      • InvalidValidator
      • InvalidValidatorScope
      • MissingMbstring
      • NoDataToValidate
      • NoValidators
      • NoValidatorsInComposite
      • UniquenessConversionMustBeArray
      • UniquenessModelRequired
      • UniquenessOnlyForPhalconModel
      • ValidationEntityNotObject
    • Phalcon\Flash\Exceptions
      • EscaperServiceUnavailable
      • FlashMessageNotStringOrArray
      • SessionServiceUnavailable
    • Phalcon\Forms\Exceptions
      • ElementNotInForm
      • FormElementNameRequired
      • FormNotInLocator
      • FormNotRegistered
      • InvalidEntity
      • InvalidFilterType
      • InvalidJsonSchema
      • JsonSchemaNotArray
      • NoFormElements
      • SchemaEntryMissingKey
      • SchemaEntryNotArray
      • UnknownFormElementType
      • YamlExtensionRequired
      • YamlSchemaNotArray
    • Phalcon\Html\Exceptions
      • AttributeNotRenderable
      • FriendlyTitleConversionFailed
      • InvalidResultsetValue
      • ServiceNotRegistered
      • UsingRequiresTwoValues
    • Phalcon\Http\Cookie\Exceptions
      • CookieKeyTooShort
      • CryptInterfaceRequired
      • CryptServiceUnavailable
      • FilterServiceUnavailable
    • Phalcon\Http\Request\Exceptions
      • FilterServiceUnavailable
      • InvalidHost
      • InvalidHttpMethod
      • MissingFilters
      • SanitizerNotFound
    • Phalcon\Http\Response\Exceptions
      • NonStandardStatusCodeRequiresMessage
      • ResponseAlreadySent
      • ResponseServiceUnavailable
      • UrlServiceUnavailable
    • Phalcon\Image\Exceptions
      • CompositeFailed
      • ExtensionNotLoaded
      • ImageLoadFailed
      • MissingDimensions
      • MissingHeight
      • MissingWidth
      • ResizeFailed
      • ResourceTypeError
      • TextRenderingFailed
      • UnsupportedImageType
      • VersionMismatch
    • Phalcon\Logger\Adapter\Exceptions
      • FileOpenFailed
      • InvalidStreamMode
      • SyslogOpenFailed
    • Phalcon\Logger\Exceptions
      • AdapterNotFound
      • DeserializationFailed
      • NoAdaptersConfigured
      • SerializationFailed
      • TransactionAlreadyActive
      • TransactionNotActive
    • Phalcon\Messages\Exceptions
      • MessageNotObject
      • MessagesNotIterable
    • Phalcon\Mvc\Application\Exceptions
      • ContainerRequired
      • InvalidModuleDefinition
      • ModuleDefinitionPathNotFound
    • Phalcon\Mvc\Dispatcher\Exceptions
      • ResponseServiceUnavailable
    • Phalcon\Mvc\Micro\Exceptions
      • ContainerRequired
      • ErrorHandlerNotCallable
      • HandlerNotCallable
      • InvalidRegisteredHandler
      • LazyHandlerNotFound
      • MissingCollectionMainHandler
      • NoHandlersToMount
      • NoMatchedRouteHandler
      • NotFoundHandlerNotCallable
      • ResponseHandlerNotCallable
    • Phalcon\Mvc\Model\Behavior\Exceptions
      • MissingRequiredOption
    • Phalcon\Mvc\Model\Exceptions
      • BelongsToRequiresObject
      • BindTypeNotDefined
      • CannotResolveAttribute
      • ColumnNotInMap
      • ColumnNotInTableColumns
      • ColumnNotInTableMap
      • CorruptColumnType
      • CursorIsImmutable
      • DataTypeNotDefined
      • HandlerMustImplementBindable
      • IdentityNotInColumnMap
      • IdentityNotInTableColumns
      • IndexNotInCursor
      • IndexNotInRow
      • InvalidConnectionService
      • InvalidContainer
      • InvalidDumpResultKey
      • InvalidFindParameters
      • InvalidGetModelNameReturn
      • InvalidModelName
      • InvalidModelsManagerService
      • InvalidModelsMetadataService
      • InvalidResultsetCacheService
      • InvalidReturnedRecord
      • InvalidSerializationData
      • ManagerOrmServicesUnavailable
      • MethodNotFound
      • MissingMethodName
      • MissingModelClassName
      • ModelCouldNotLoad
      • ModelOrmServicesUnavailable
      • PrimaryKeyAttributeNotSet
      • PrimaryKeyRequired
      • PropertyNotAccessible
      • RecordCannotRefresh
      • RecordNotPersisted
      • ReferencedFieldsMismatch
      • RelationAliasMustBeString
      • RelationNotDefined
      • RelationRequiresObjectOrArray
      • ResultsetColumnNotInMap
      • RowIsImmutable
      • SnapshotsDisabled
      • StaticMethodRequiresOneArgument
      • UnknownRelationType
      • UpdateSnapshotDisabled
    • Phalcon\Mvc\Model\MetaData\Exceptions
      • CannotObtainTableColumns
      • ColumnMapNotArray
      • ContainerRequired
      • CorruptedMetaData
      • InvalidContainer
      • InvalidMetaDataForModel
      • MetaDataDirectoryNotWritable
      • MetaDataStrategyFailed
      • NoAnnotationsForClass
      • NoPropertyAnnotationsForClass
      • TableNotInDatabase
    • Phalcon\Mvc\Model\Query\Exceptions
      • AmbiguousColumn
      • AmbiguousJoinRelation
      • BindParameterNotInPlaceholders
      • BindTypeRequiresArray
      • BindValueRequired
      • ColumnNotInDomain
      • ColumnNotInSelectedModels
      • CorruptedAst
      • CorruptedDeleteAst
      • CorruptedInsertAst
      • CorruptedSelectAst
      • CorruptedUpdateAst
      • DeleteMultipleNotSupported
      • DuplicateAlias
      • EmptyArrayPlaceholderValue
      • InsertColumnCountMismatch
      • InvalidCachedResultset
      • InvalidCachingOptions
      • InvalidColumnDefinition
      • InvalidInjectedManager
      • InvalidInjectedMetadata
      • InvalidQueryCacheService
      • InvalidResultsetClass
      • JoinAliasAlreadyUsed
      • JoinFieldCountMismatch
      • MissingCacheKey
      • MissingMetaData
      • MissingModelAttribute
      • MissingModelsManager
      • MixedDatabaseSystems
      • ModelSourceNotFound
      • ModelsListNotLoaded
      • MultipleSqlStatementsNotSupported
      • NoModelForAlias
      • PhqlColumnNotInMap
      • ReadConnectionMissing
      • RelationshipNotFound
      • ResultsetClassNotFound
      • ResultsetNonCacheable
      • UnknownBindType
      • UnknownColumnType
      • UnknownJoinType
      • UnknownModelOrAlias
      • UnknownPhqlExpression
      • UnknownPhqlExpressionType
      • UnknownPhqlStatement
      • UpdateMultipleNotSupported
      • WriteConnectionMissing
    • Phalcon\Mvc\Model\Query\Exceptions\Builder
      • BuilderColumnNotInMap
      • BuilderConditionInvalid
      • ModelRequired
      • NoPrimaryKey
      • OperatorNotAvailable
    • Phalcon\Mvc\Router\Exceptions
      • AnnotationsServiceUnavailable
      • BeforeMatchNotCallable
      • ConfigKeyMustBeArray
      • EmptyGroupOfRoutes
      • GroupRoutesMustBeArray
      • InvalidCallbackParameter
      • InvalidConfigSource
      • InvalidNotFoundPaths
      • InvalidRoutePaths
      • InvalidRoutePosition
      • InvalidRouterFactoryConfig
      • MissingGroupRouteKey
      • MissingRouteConfigKey
      • RequestServiceUnavailable
      • UnknownHttpMethod
      • WrongPathsKey
    • Phalcon\Mvc\Url\Exceptions
      • MissingRouteName
      • RouteNotFound
      • RouterServiceUnavailable
    • Phalcon\Mvc\View\Engine\Volt\Exceptions
      • CannotOpenCompiledFile
      • CorruptedStatement
      • CorruptedStatementWithData
      • InvalidCompilationPrefix
      • InvalidExtension
      • InvalidHaystack
      • InvalidIntermediateRepresentation
      • InvalidOptionType
      • InvalidPathClosureReturn
      • InvalidPathType
      • InvalidStatement
      • InvalidUserFilterDefinition
      • InvalidUserFunctionDefinition
      • MacroAlreadyDefined
      • MacroNotFound
      • MbstringRequired
      • TemplateFileNotFound
      • TemplateFileNotOpenable
      • TemplatePathCollision
      • UnknownVoltExpression
      • UnknownVoltFilter
      • UnknownVoltFilterType
      • UnknownVoltStatement
      • VoltDirectoryNotWritable
    • Phalcon\Mvc\View\Exceptions
      • InvalidEngineRegistration
      • InvalidViewsDirType
      • SimpleViewNotFound
      • SimpleViewServicesUnavailable
      • ViewNotFound
      • ViewServicesUnavailable
      • ViewsDirItemMustBeString
    • Phalcon\Paginator\Exceptions
      • BuilderModelNotDefined
      • InvalidBuilderInstance
      • InvalidCursorColumn
      • InvalidLimit
      • MissingColumnsForHaving
      • MissingRequiredParameter
      • PaginatorDataNotArray
    • Phalcon\Session\Adapter\Exceptions
      • AdapterRuntimeError
      • InvalidSavePath
      • SavePathUnavailable
    • Phalcon\Session\Exceptions
      • InvalidSessionAdapter
      • InvalidSessionName
      • SessionAlreadyStarted
      • SessionModificationDenied
    • Phalcon\Storage\Exceptions
      • AuthenticationFailed
      • ClusterConnectionFailed
      • ConnectionFailed
      • DatabaseSelectionFailed
      • InvalidConfiguration
      • StorageError
    • Phalcon\Storage\Serializer\Exceptions
      • InvalidSerializationInput
      • InvalidUnserializationInput
    • Phalcon\Support\Collection\Exceptions
      • InvalidValueType
      • ReadOnlyViolation
    • Phalcon\Support\Debug\Exceptions
      • RequestHalted
      • RuntimeWarning
    • Phalcon\Support\Helper\Json\Exceptions
      • JsonDecodeError
      • JsonEncodeError
    • Phalcon\Support\Helper\Str\Exceptions
      • InsufficientArguments
      • InvalidReplaceFormat
      • SyntaxError
    • Phalcon\Time\Clock\Exceptions
      • InvalidModifier
    • Phalcon\Translate\Exceptions
      • FileOpenError
      • ImmutableObject
      • InterpolatorNotRegistered
      • InvalidDataType
      • KeyNotFound
      • MissingContent
      • MissingGettextExtension
      • MissingRequiredParameter
      • TranslatorNotRegistered #17019
  • Added Phalcon\Events\Manager::fire() beforeFire() / afterFire() extension seams to Manager::fire(). #17065 [doc]
  • Added opt-in memory caps for long-running workers (Swoole / RoadRunner / queue consumers). Default 0 preserves the original unbounded behavior: #17049
    • Phalcon\Db\Profiler::setMaxProfiles(int) / getMaxProfiles() [doc]
    • Phalcon\Logger\Adapter\AbstractAdapter::setQueueLimit(int) / getQueueLimit() [doc]
    • Phalcon\Events\Manager::setMethodExistsCacheLimit(int) / getMethodExistsCacheLimit() [doc]
    • Phalcon\Annotations\Adapter\AbstractAdapter::setAnnotationsLimit(int) / getAnnotationsLimit() [doc]
    • Phalcon\Storage\Adapter\Memory::setMaxItems(int) / getMaxItems() [doc]
  • Added Phalcon\Mvc\Router\Route::setRouteId(string $routeId) - setter intended for restoring cached routes #17012 [doc]
  • Added Phalcon\Mvc\Router::buildDispatcherDump() / Phalcon\Mvc\Router::loadDispatcherFromArray(array $dump) - used to build/load the routes #17012 [doc]
  • Added Phalcon\Mvc\Router::dumpDispatcher(string $path) / Phalcon\Mvc\Router::loadDispatcher(string $path) - file-shaped helpers that write/read routes #17012 [doc]
  • Added Phalcon\Mvc\Router::useCache() - to use a Phalcon\Cache adapter to store routes #17012 [doc]

Fixed

  • Fixed $this->eventsManager resolving to null inside Phalcon\Mvc\Controller methods #17060 [doc]
  • Fixed Phalcon\Events\Event and Phalcon\Events\Manager::fire() being declared final in 5.13.0 (#17006), which prevented subclassing the events manager. #17065 [doc]
  • Fixed Phalcon\Forms\Form::clear() leaving a previously-bound null field value in the data array instead of unsetting it before reassigning the element default #17042 [doc]
  • Fixed Phalcon\Mvc\Model::getChangedFields() / hasChanged() flagging every null-valued column of a freshly-loaded row as changed #17042 [doc]
  • Fixed Phalcon\Mvc\Model::getUpdatedFields() flagging unchanged null-valued columns as updated #17042 [doc]
  • Fixed Phalcon\Mvc\Model\Row::offsetGet() / offsetExists() throwing The index does not exist in the row when accessing a column whose value is null #17041 [doc]
  • Fixed Phalcon\Mvc\Router::handle() falling back to a default catch-all route instead of matching an HTTP-method-constrained route attached afterward. #17062 [doc]
  • Fixed Phalcon\Mvc\View::getContent() throwing TypeError after View::start(). start() was assigning $this->content = null #17041 [doc]
  • Fixed Phalcon\Mvc\View\Engine\Volt\Compiler emitting invalid PHP when a double-quoted Volt string contained literal single quotes (e.g. "send_ga('Link', ...)"). Only un-escaped single quotes are now escaped, so the 'Let\'s Encrypt' case from #17002 is preserved #17046 [doc]
  • Fixed warning in Phalcon\Auth\ManagerFactory emitted in tests (random commit but had to be fixed) #17066

Removed

  • Removed unused Phalcon\Contracts\Container\Service\Lifetime #17066
  • Reverted the Phalcon\Mvc\Model\Query::executeUpdate() named-placeholder substitution introduced for #16976. The substitution path was triggering a use-after-free in the model update flow under PostgreSQL (#17042). Issue #16976 is reopened and will be addressed with a different approach. [doc]
Navigation

Type to search…

↑↓ navigate↵ selectEsc close