yiisoft/yii2 — pull request #1454 by egorpromo (2013-12-07 05:01:31+00:00)
Title: Fixed file validation

I think the only situation when file is correct is in case UPLOAD_ERR_OK. If any other state then there is an error. If php developers will introduce new constant then in default state validation will always pass. But validation have to pass in UPLOAD_ERR_OK case only.