|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54071 dir_opendir does not return handle but bool
Submitted: 2011-02-22 17:28 UTC Modified: 2011-02-23 17:02 UTC
From: ghosh at q-one dot com Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.3.5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 + 42 = ?
Subscribe to this entry?

 [2011-02-22 17:28 UTC] ghosh at q-one dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-22 18:11 UTC] ghosh at q-one dot com
-Status: Open +Status: Closed
 [2011-02-22 18:11 UTC] 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-23 17:02 UTC]
-Status: Closed +Status: Bogus
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 07:01:34 2024 UTC