php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4666 rename or copy files, fails
Submitted: 2000-05-29 14:43 UTC Modified: 2000-05-30 19:03 UTC
From: cox at idecnet dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.0 Release OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cox at idecnet dot com
New email:
PHP Version: OS:

 

 [2000-05-29 14:43 UTC] cox at idecnet dot com
I can not copy or rename a file to a non absolut PATH. Ex:
include "files.inc";
$dir = "../images";
mycopy($file,$dir);

<--files.inc--->
function mycopy($foo,$dir){
   copy($foo,$dir);
}

Now I need to do something ugly like:
<--files.inc--->
function mycopy($foo,$dir){
  global $PATH_TRANSLATED;
  $path = dirname($PATH_TRANSLATED);
  $foo = $path . "/" . $foo;
  copy($foo,$dir);
}

With PHP < 4.0RC2 all was good. Unlink works good also.

My PHP4 version is CVS 26-05-00

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-30 19:03 UTC] stas at cvs dot php dot net
Should be fixed in latest CVS. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 19:01:26 2024 UTC