If photons had mass however minuscule, thermodynamics and statistical mechanics would be up for review. BLACKBODY RADIATION, anyone? The spectrum of emitted light from a body would be quite different—probably wouldn't even be a 'spectrum' as we know it.