[PHP-DEV] PHP 4.0 Bug #4666: rename or copy files, fails From: cox <email protected>
Date: 05/29/00

From: cox <email protected>
Operating system: Linux
PHP version: 4.0.0 Release
PHP Bug Type: Scripting Engine problem
Bug description: rename or copy files, fails

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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>