Page 1 of 1

closeDir function

Posted: Wed Sep 03, 2003 5:59 am
by yaron
is there a need to close a directory with closeDir() or it will close by itself after the script is over?

Thanks

Posted: Wed Sep 03, 2003 6:20 am
by JAM
Interesting subject.
Currently my server is having hardware redesigns, so I can test. But feel free to enable a mem/swap/cpu monitor, loop the opendir function a couple of tousand times, and see what happens.

Other thought is that perhaps there later will be an issue not terminating the handle of the opened dir after each opendir...

I would close it... ;)