|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17445 open_basedir warning when including file in same dir
Submitted: 2002-05-27 01:16 UTC Modified: 2005-01-31 23:00 UTC
Avg. Score:4.0 ± 0.7
Reproduced:8 of 8 (100.0%)
Same Version:3 (37.5%)
Same OS:1 (12.5%)
From: mitch at webcob dot com Assigned:
Status: No Feedback Package: Safe Mode/open_basedir
PHP Version: 4.2.1 OS: FreeB SD 4.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mitch at webcob dot com
New email:
PHP Version: OS:


 [2002-05-27 01:16 UTC] mitch at webcob dot com
I have set open_basedir =

I have set include_path = 

I have a file located in:

which requires another file in the same directory.
<?php require_once('file2.php'); ?>

The include WORKS.


Warning: open_basedir restriction in effect. File is in wrong directory in /home/user/site/htdocs/file1.php on line 3 File2 is here.

The "File2 is here" is produced by the included file.

I've seen others comment on this problem, but could find no solution or open occurance of it in the bug list.




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-08 22:51 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-10-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 02:05:53 2022 UTC