When $TMPDIR is low on space PHP streams silently fail
Handle incomplete file write to cache
Merge pull request #3207 from cs278/handle-low-diskspace

Handle low diskspace errors