Bug 65701
https://bugs.php.net/bug.php?id=65701

Invalidate cache after stat within copy()