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

From: Date: Thu, 30 Nov 2000 09:08:28 +0000
Subject: PHP 4.0 Bug #8044 Updated: rename() with relative paths - wrong behaviour
Groups: php.dev 
Request: Send a blank email to php-dev+get-39677@lists.php.net to get a copy of this message
ID: 8044 Updated by: dbeu Reported By: christian@wenz.org Status: Closed Bug Type: Filesystem function related Assigned To: Comments: this is already fixed, wait for 4.0.4 or get a dev version i.e. from php4win.de Previous Comments: --------------------------------------------------------------------------- [2000-11-30 02:56:41] christian@wenz.org create a file c:temptemp.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! --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8044

« previous php.dev (#39677) next »