I am creating a WordPress plugin and can see that on some servers, for certain files, the stat
(or filemtime
) returning invalid mtime value. In some cases it is a negative value or a very large value (more than 3 billion).
In FTP I can see that the timestamp is correct though.