PHP versions below 5.3 throw errors when passing argument to clearstatcache. Fixes #2777