Closed oyeaussie closed 7 months ago
Resolved in https://github.com/phalcon/cphalcon/pull/16561
Thank you @oyeaussie for reporting this.
Hello @niden
This doesn't seem like its fixed in version 5.7.x
It seems that your fix was reverted: https://github.com/phalcon/cphalcon/commits/5.0.x/phalcon/Filter/Validation/Validator/StringLength/Max.zep
Can you please confirm.
Thanks, Guru.
Expected behavior The includedMinimum and includedMaximum in stringlength validation, when set to "true", should compare the string length with operators <= & >=, but instead they compare it with < & >
Workaround is to switch them to "false"
Steps to reproduce the behavior:
Details
Directive => Local Value => Master Value phalcon.db.escape_identifiers => On => On phalcon.db.force_casting => Off => Off phalcon.orm.case_insensitive_column_map => Off => Off phalcon.orm.cast_last_insert_id_to_int => Off => Off phalcon.orm.cast_on_hydrate => Off => Off phalcon.orm.column_renaming => On => On phalcon.orm.disable_assign_setters => Off => Off phalcon.orm.enable_implicit_joins => On => On phalcon.orm.enable_literals => On => On phalcon.orm.events => On => On phalcon.orm.exception_on_failed_save => Off => Off phalcon.orm.exception_on_failed_metadata_save => On => On phalcon.orm.ignore_unknown_columns => Off => Off phalcon.orm.late_state_binding => Off => Off phalcon.orm.not_null_validations => On => On phalcon.orm.resultset_prefetch_records => 0 => 0 phalcon.orm.update_snapshot_on_save => On => On phalcon.orm.virtual_foreign_keys => On => On phalcon.orm.dynamic_update => On => On phalcon.warning.enable => On => On `
PHP 8.3.4 (cli) (built: Mar 16 2024 08:40:08) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.4, Copyright (c) Zend Technologies with Zend OPcache v8.3.4, Copyright (c), by Zend Technologies with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans