php.net |  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: None
 [2006-03-27 16:55 UTC] rebe at unit01 dot net
Description:
------------
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".


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-27 22:05 UTC] cellog@php.net
this patch may solve the issue

http://pastebin.com/625633
 [2006-03-27 23:13 UTC] bjori@php.net
Greg: Solves the issue with is_readable() and friends, but not is_dir() and pals.

This however does:
http://php.is/bugs/36875/open_basedir.phpHEAD.patch.txt
http://php.is/bugs/36875/open_basedir.php51.patch.txt

-Hannes
 [2006-04-09 17:58 UTC] iliaa@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC