- check that the result of fileno($fh) is defined rather than simply