Summary:
Copied from PHP Manual.
Also fix missing cache key for implicitly linted file.
Test Plan:
phabricator/ $ arc lint src/applications/files/PhabricatorImageTransformer.php # without GD2
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin, AnhNhan
Differential Revision: https://secure.phabricator.com/D5457
imagecreatefromstring
imagecreatefromwbmp
imagecreatefromxbm
+imagecreatefromxpm
imagecreatetruecolor
imagedashedline
imagedestroy
imagefilter
imagefontheight
imagefontwidth
+imageftbbox
+imagefttext
imagegammacorrect
imagegd
imagegd2
imagegif
+imagegrabscreen
+imagegrabwindow
imageinterlace
imageistruecolor
imagejpeg
imagepalettecopy
imagepng
imagepolygon
+imagepsbbox
+imagepsencodefont
+imagepsextendfont
+imagepsfreefont
+imagepsloadfont
+imagepsslantfont
+imagepstext
imagerectangle
imagerotate
imagesavealpha
imagesx
imagesy
imagetruecolortopalette
+imagettfbbox
+imagettftext
imagetypes
imagewbmp
imagexbm
$cached_path[] = $message->toDictionary();
}
}
- $hash = $file_hashes[$abs_path];
+ $hash = idx($file_hashes, $abs_path);
+ if (!$hash) {
+ $hash = md5_file($abs_path);
+ }
$cached[$path] = array($hash => array($version => $cached_path));
}
$cache[$this->getCacheKey()] = $cached;