php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6498 Rename function fails with non absolute paths
Submitted: 2000-09-02 03:18 UTC Modified: 2000-10-26 05:43 UTC
From: P dot Gabriel at mageos dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.2 OS: Win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: P dot Gabriel at mageos dot com
New email:
PHP Version: OS:

 

 [2000-09-02 03:18 UTC] P dot Gabriel at mageos dot com
The rename function only works with absolute paths.

example that doesn't work:

rename("test.txt","test2.txt"); 


I need somthing like it to do the same thing:

copy("test.txt","test2.txt");
unlink("test.txt");


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-26 05:43 UTC] dbeu@php.net
this is fixed, as soon as the cvs is coming back.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 28 10:00:01 2026 UTC