From:             motion4u at hotmail dot com
Operating system: Windows 2000 Advanced
PHP version:      4.3.6
PHP Bug Type:     Directory function related
Bug description:  function rename stopped working after the last Windows update

Description:
------------
The function:
rename($oldname, $newname);
stopped working after the last windows update.
I'm using the rename Function to rename a directory

rename($oldname, $newname);

It doesn't work anymore... 
Before making a fool out of myself, I have double checked it.
If you think to answer that it might be that the directory is in use or a
file within it is open ... the answer is no! I have restarted the server
and the client and disconnected the internet plug for it.

Reproduce code:
---------------
just fill in the path to any subdirectory and call
<?
$old_dirname="";
$newdirname="";

$result=rename($old_dirname, $newdirname);

echo $result," old directory name: ",$old_dirname," new directory name:
",$newdirname;
?>



-- 
Edit bug report at http://bugs.php.net/?id=28276&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28276&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28276&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28276&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28276&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28276&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28276&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28276&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28276&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28276&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28276&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28276&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28276&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28276&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28276&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28276&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28276&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28276&r=float

Reply via email to