Bug #54071 [Csd->Bgs]: dir_opendir does not return handle but bool
| From: | cataphract@php.net | Date: | Wed, 23 Feb 2011 16:02:47 +0000 |
| Subject: | Bug #54071 [Csd->Bgs]: dir_opendir does not return handle but bool | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158981@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54071&edit=1
ID: 54071
Updated by: cataphract@php.net
Reported by: ghosh at q-one dot com
Summary: dir_opendir does not return handle but bool
-Status: Closed
+Status: Bogus
Type: Bug
Package: Streams related
Operating System: Linux
PHP Version: 5.3.5
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-02-22 18:11:55] ghosh at q-one dot com
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.
------------------------------------------------------------------------
[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