|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19548 opendir() not "using" include_path
Submitted: 2002-09-22 07:03 UTC Modified: 2002-10-06 20:27 UTC
From: Assigned:
Status: Not a bug Package: *Directory/Filesystem functions
PHP Version: 4.2.3 OS: debian linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2002-09-22 07:03 UTC]
i have a page in:


in the code i have various stuff to load all .php files from a given directory, the problem is the following:

if i do include("modules/content/forum/lang/en/index.php"); it will ofcourse load the file, if i do an opendir() on "modules/content/forum/lang/en/" i dont get a file/directory list from it, but if i prefix the relative path with /home/web/ it works fine

this leaves me to believe that opendir() doesnt follow the include_path directive


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-22 07:10 UTC]
ughm, even with the prefixed path it doesnt work. i have a+r and a+x all the way on directories, any hints?
 [2002-09-22 14:31 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

include_path only pertains to the openning of files and not directories.
 [2002-10-06 20:27 UTC]
the include_path was my error, i acctually ment relative

p.s. i acctualy tested it again (after i recreated the directory structure), and it works fine with relative paths, and the bug hasnt "appeared" again..

you are correct in marking it as bogus anyway, must have been some freak FS error (or feature :)), and nothing to do with php.. sorry for that:)
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 14:01:25 2023 UTC