PHP 4.0 Bug #8044: rename() with relative paths - wrong behaviour

From: Date: Thu, 30 Nov 2000 07:56:41 +0000
Subject: PHP 4.0 Bug #8044: rename() with relative paths - wrong behaviour
Groups: php.dev 
Request: Send a blank email to php-dev+get-39672@lists.php.net to get a copy of this message
From: christian@wenz.org Operating system: Win32 PHP version: 4.0.3pl1 PHP Bug Type: Filesystem function related Bug description: rename() with relative paths - wrong behaviour create a file c:\temp\temp.txt Now create a PHP file, but not in the root directory of your webserver, but in a subdirectory of it, that contains this command: rename("c:\\temp\\temp.txt", "temp.txt"); Now run this script from your webbrowser (e.g. http://server/subdir/rename.php) The file is now moved away from c:\temp, but not into the directory where rename.php resides in (as one would guess), but in the root directory of the web application! -- Edit Bug report at: http://bugs.php.net/?id=8044&edit=1

« previous php.dev (#39672) next »