|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36875 open_basedir doesn't affect is_writable
Submitted: 2006-03-27 16:55 UTC Modified: 2006-04-09 17:58 UTC
From: rebe at unit01 dot net Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 5.1.2 OS: linux
Private report: No CVE-ID:
 [2006-03-27 16:55 UTC] rebe at unit01 dot net
I'm not sure is it ok but open_basedir restriction in php.ini does not affect is_writable() behaviour. 

It means that function returns true even if path is out of open_basedir setting and any try to write there finishes with "open_basedir restriction in effect".


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-27 22:05 UTC]
this patch may solve the issue
 [2006-03-27 23:13 UTC]
Greg: Solves the issue with is_readable() and friends, but not is_dir() and pals.

This however does:

 [2006-04-09 17:58 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sun Nov 29 17:01:31 2015 UTC