Edit report at http://bugs.php.net/bug.php?id=54071&edit=1
ID: 54071 User updated by: ghosh at q-one dot com Reported by: ghosh at q-one dot com Summary: dir_opendir does not return handle but bool -Status: Open +Status: Closed Type: Bug Package: Streams related Operating System: Linux PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: Sorry. This is bogus. Found this out myself: streamWrapper is being called as a separate object instance for each running opendir. Should perhaps be documented a bit more. Documentation on all this is really sparse at the moment. Previous Comments: ------------------------------------------------------------------------ [2011-02-22 17:28:55] ghosh at q-one dot com Description: ------------ In contrast to "opendir", streamWrapper::dir_opendir does not return a handle but a bool. This is bad IMHO, because within a call of dir_readdir there seems to be no way to differentiate which directory is currently being read in case multiple dir_opendir-calls are running concurrently. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54071&edit=1