Third argument to unpack() requires PHP 7.1
authorAryeh Gregor <ayg@aryeh.name>
Wed, 10 Apr 2019 11:08:40 +0000 (14:08 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Wed, 10 Apr 2019 11:14:42 +0000 (14:14 +0300)
commit94033330b43f562af7fa80f086e9bc2f591f1af0
tree146d155cabe14c0f2c1d73677f9f6f9190bde831
parent79e1a48365d30b95884a8ce2f2efe3970e98ccf1
Third argument to unpack() requires PHP 7.1

On PHP 7.0, it looks like this code would have raised a warning and
given random results, because it would interpret the first byte of $tail
as the comment length instead of the correct one. Thanks for being
permissive about unrecognized function parameters, PHP!

(The actual reason I found and fixed this is because the phan annotation
here was giving me an error on PHP 7.3: "UnusedPluginSuppression Plugin
BuiltinSuppressionPlugin suppresses issue PhanParamTooManyInternal on
this line but this suppression is unused or suppressed elsewhere".)

Change-Id: I910f78698d1a53e8a90ddf243a4d65be87f29ca9
includes/libs/mime/MimeAnalyzer.php