This commit is contained in:
ルーパーヘイズ 2014-06-01 19:08:35 +09:00
parent 595b51c3bc
commit 50226d788b
1 changed files with 6 additions and 2 deletions

View File

@ -71,7 +71,11 @@ class SimilarImages
if ($search_url) {
$params['url'] = $search_url;
} else {
$params['file'] = '@' . $source_file;
if (function_exists('curl_file_create')) { // PHP v5.5.* fix
$params['file'] = curl_file_create($source_file);
} else {
$params['file'] = '@' . $source_file;
}
}
foreach ($services_list as $k => $s)
@ -425,4 +429,4 @@ class SimilarImages
{
return Rails::publicPath() . self::SEARCH_CACHE_DIR;
}
}
}