Parse a request with using a MultipartFormDataParser.
No errors occur.
An ErrorException is being thrown:
Only variables should be passed by reference
The exception is caused by a notices generated by this line:
$lastKey = array_pop(array_keys($current));
Should we extract array_keys($current) to a separate variable to fix this?
| Q | A
| ---------------- | ---
| Yii version | 2.0.14
| PHP version | 7.1
| Operating system | GNU/Linux
Please check 2.0.14.
@samdark the code I refer to is both in 2.0.14 and master.
link in the topic refer to the master https://github.com/yiisoft/yii2/blob/313be2a5d75951e48273c6dae04eba2ab879fba9/framework/web/MultipartFormDataParser.php#L323
@bscheshirwork while the link indeed, refers to the master the very same code is still in 2.0.14. Here's a link specifically for the 2.0.14.
Yes, of course.
Could you provide a test case or request content that produces this error?
Most helpful comment
@samdark the code I refer to is both in
2.0.14andmaster.