fabpot/Goutte — pull request #81 by arithmetric (2012-10-16 17:28:05+00:00)
Title: Fixing logic in addPostFiles() to handle when a file name/path string is given in place of the  array.

This is a follow up fix for the change to allow client side file uploads with an arbitrary file name that was recently merged from this PR:
https://github.com/fabpot/Goutte/pull/77

The logic in addPostFiles() is not working as expected. When a specific file name is used, it is supplied as a string in $info. This string value in $info passes the check for isset($info['tmp_name']) so I added an additional check using is_array($info).