Fix XMPReader/XMPValidator for PHP 7
authorBrion Vibber <brion@pobox.com>
Fri, 9 Mar 2018 19:54:19 +0000 (11:54 -0800)
committerKrinkle <krinklemail@gmail.com>
Tue, 20 Mar 2018 03:26:00 +0000 (03:26 +0000)
commitf2f370cb31b0d2b9d88afa10161b39a1b87af093
tree35cecc5154894e938ff2b2a4040941d44e0eb694
parent08d90fb722a0abe7bc4dfadfdf2e7841fc86b0ed
Fix XMPReader/XMPValidator for PHP 7

Tripped up by old typos being caught in new warnings on
PHP 7.x: was checking a scalar's count when meant to
check its containing array's count, and was using a str
"\0" where a literal 0 should have been used (now considered
non-numeric).

Tested locally on 7.2

Bug: T182365
Change-Id: If79a73032d6b63cc41135ccafb6900aeb7787b02
includes/libs/xmp/XMP.php
includes/libs/xmp/XMPValidate.php