ID: 20123 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Directory function related Operating System: Windows 2000 (NTFS) PHP Version: 4.2.0 New Comment:
Ok, so is this a known bug already fixed? Previous Comments: ------------------------------------------------------------------------ [2002-10-27 12:55:30] [EMAIL PROTECTED] closing then ------------------------------------------------------------------------ [2002-10-27 12:54:48] [EMAIL PROTECTED] Yes, thanks, I already tried php4-win32-latest.zip. But, for the present this snapshot doesn't work with my Apache. So, I replaced the rewinddir() by the closedir() + opendir() and everything works fine. ------------------------------------------------------------------------ [2002-10-27 12:46:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-10-27 12:42:56] [EMAIL PROTECTED] When using rewinddir(), the next closedir() function doesn't release the directory handle, so the directory is locked forever (I had to restart web server to be able to delete this directory). I'm using Windows 2000 on NTFS, PHP 4.2.1 binaries and Apache 1.3.24. Below is a sample code which generates this error: "rmdir() failed (Permission denied) in rewinddir.php on line 14" Thanks, Tomas Rubringer [EMAIL PROTECTED] <html> <head> <title>strange rewinddir()</title> </head> <body> <?php $dir = "./test"; mkdir($dir, 0777); $handle = opendir($dir); rewinddir($handle); closedir($handle); rmdir($dir); ?> </body> </html> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20123&edit=1