[Filesystem] copy() is not working when open_basedir is set

More details: https://bugs.php.net/bug.php?id=64634