is there a need to close a directory with closeDir() or it will close by itself after the script is over?
Thanks
closeDir function
Moderator: General Moderators
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...
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...