ID: 11062 Comment by: birth-live1909 at hotmail dot com Reported By: rkenny at mke dot catalystwms dot com Status: Closed Bug Type: Directory function related Operating System: NT 4.0 SP6a PHP Version: 4.0.6 New Comment:
<a href=http://sweat-insertion-en.da.ru>birth live</a> Previous Comments: ------------------------------------------------------------------------ [2002-02-21 12:23:56] jean-marc_andre at hp dot com Hi, I have the same problem. I think it may come from rewinddir. I've written a script that first checks is there is at least one file in a given directory. It opens the directory and stores the directory handle into a variable. Further in the same page, the script uses this handle again to gets informations on the files in the directory, so I use rewinddir on it. Then, the function rewind the directory handle but a new one appears (I cheched it with nthandle) Here is a script that I think produces the same effect: <?php $hDir=opendir('c:\web\project1\docs\BCD\Status'); if($hDir){ for($i=0;$i<10;$i++){ while(($file=readdir($hDir))!==false){ echo "$file<br>\n"; } rewinddir($hDir); } closedir($hDir); } ?> then there are still 10 opened handles ------------------------------------------------------------------------ [2001-11-10 08:43:37] [EMAIL PROTECTED] No feedback. Closing. ------------------------------------------------------------------------ [2001-10-20 20:54:51] [EMAIL PROTECTED] Is this solved by updating IIS ? ------------------------------------------------------------------------ [2001-07-21 18:22:06] [EMAIL PROTECTED] Make sure Windows or any other app has this directory or any files in it locked (using them.) ------------------------------------------------------------------------ [2001-07-03 11:38:02] rkenny at mke dot catalystwms dot com Yes, the purpose of the script is to display the contents of a directory and make them available via the IIS server. Unfortunately, I need to make use of the NT security model, so switching to apache is not an option (or I would have, a long time ago). Do you know if this IIS bug was fixed in IIS 5? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11062 -- Edit this bug report at http://bugs.php.net/?id=11062&edit=1
