In the PHP version, the auto generated input-parser skeleton code is wrong.
$FNAME = stream_get_line(STDIN, 55 + 1, “\n”); // One file name per line.
It should have 256 instead of 55. The large dataset validator fails with 55.
It cost me lots of extra time to find this bug - I thought my code was buggy while it was fine and the provided code was the faulty…