-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phalcon\Validation\Validator\File triggers notice on strtr array to string conversion #12349
Comments
@Jurigag Could you please take a look |
Just to be sure. Validation is Phalcon\Validation right ? Then problem is happening i guess because of changes i made here 1adfdae#diff-7ce9ac330c42f24966594edd3cd39131R70 but i don't see really where i missed type checking. |
Maybe it's here -
But it was done in old validator anyway. This is only one place where this can happen. Will do test and check it. Yes this is exactly why it happens, will do fast fix. |
It should be fixed by #12352. Tests are not possible though because right now mocking php functions in zephir extension not possible. |
@bkwint git clone [email protected]:phalcon/cphalcon.git
cd cphalcon
git checkout 3.0.x
zephir fullclean
zephir build |
@sergeyklay the issue seems resolved with the new build. My apologies with the delay in testing the fix. |
Thanks |
Expected and Actual Behavior
While doing a file upload validation with the Phalcon\Validation\Validator\File validator the system triggers an array to string conversion notice when using the option maxResolution. This means that the expected output when an error occurs displays the text Array instead of the actual max resolution.
Details
Used version of phalcon
Web framework delivered as a C-extension for PHP
phalcon => enabled
Author => Phalcon Team and contributors
Version => 3.0.1
Build Date => Sep 1 2016 18:22:49
Powered by Zephir => Version 0.9.4a-dev-7e304ba18c
Directive => Local Value => Master Value
phalcon.db.escape_identifiers => On => On
phalcon.db.force_casting => Off => Off
phalcon.orm.events => On => On
phalcon.orm.virtual_foreign_keys => On => On
phalcon.orm.column_renaming => On => On
phalcon.orm.not_null_validations => On => On
phalcon.orm.exception_on_failed_save => Off => Off
phalcon.orm.enable_literals => On => On
phalcon.orm.late_state_binding => Off => Off
phalcon.orm.enable_implicit_joins => On => On
phalcon.orm.cast_on_hydrate => Off => Off
phalcon.orm.ignore_unknown_columns => Off => Off
PHP version and operating system
PHP 7.0.8-0ubuntu0.16.04.2 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.8-0ubuntu0.16.04.2, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
Installation type
installing via package manager
The text was updated successfully, but these errors were encountered: