Small optimization for FileContentsHasher
authorOri Livneh <ori@wikimedia.org>
Mon, 5 Oct 2015 17:56:32 +0000 (10:56 -0700)
committerOri Livneh <ori@wikimedia.org>
Mon, 5 Oct 2015 18:13:41 +0000 (11:13 -0700)
commit3621ad0f82f8b6b26f034f79d60ac0007327cd79
treefbb50f5596549b5222377902faa17c59f3361fa8
parent38b777ed3d5068b4cbb18a7afd9ca43640e2ee3c
Small optimization for FileContentsHasher

Make sure that PHP warnings are suppressed and restored once per invocation of
FileContentsHasher::getFileContentsHash(), rather than once or twice per file.

Change-Id: I814093f226d62e5e479411d0c3a7bbbe4998255a
includes/utils/FileContentsHasher.php