Attempts to rename from to to, moving it between directories if necessary. If renaming a file and to exists, it will be overwritten. If renaming a directory and to exists, this function will emit a warning.
The old name.
The wrapper used in from must match the wrapper used in to.
The new name.
On Windows, if to already exists, it must be writable. Otherwise rename fails and issues E_WARNING.
A context stream resource.
Returns true on success or false on failure.