php.net |  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: black@php.net 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: black@php.net
New email:
PHP Version: OS:

 

 [2002-09-22 07:03 UTC] black@php.net
i have a page in:

/home/web/sunshine.krneki.org/

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/sunshine.krneki.org/ it works fine

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-22 07:10 UTC] black@php.net
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] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

include_path only pertains to the openning of files and not directories.
 [2002-10-06 20:27 UTC] black@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC