php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64559 Specify exactly what functions/statements the open_basedir directive affects
Submitted: 2013-04-01 20:01 UTC Modified: 2013-10-26 06:54 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: matteosistisette at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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: matteosistisette at gmail dot com
New email:
PHP Version: OS:

 

 [2013-04-01 20:01 UTC] matteosistisette at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/manual/en/ini.core.php#ini.open-basedir
---

---
open_basedir string
Limit the files that can be opened by PHP to the specified directory-tree [...]

When a script tries to open a file with, FOR EXAMPLE, fopen() or gzopen(), the 
location of the file is checked.
---

FOR EXAMPLE?!?!?!?!?!?!?!?

It is not clear whether or not this affects include, require, require_once and 
include_once.

Please list all the file-opening functions and statements that this directive 
affects, or say "all except " and list those it doesn't affect. Or, if it 
affects all and every statement that may opens a file in any way, then state it 
clearly.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-02 12:07 UTC] krakjoe@php.net
From a quick scan, dir, stat, link, file, fopen wrappers, temp files, glob and a 
bunch of extensions.

I'm not sure of the terminology to use in the example, it should be the case that 
the author of any extension should be using open_basedir.
 [2013-10-26 06:53 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331995
Log: #64559 clarify the usage of open_basedir
 [2013-10-26 06:54 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-26 06:54 UTC] krakjoe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 05:00:01 2026 UTC