#36875 [Opn->Csd]: open_basedir doesn't affect is_writable
ID: 36875
Updated by: iliaa@php.net
Reported By: rebe at unit01 dot net
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: linux
PHP Version: 5.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-03-27 23:13:12] 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-03-27 22:05:56] cellog@php.net
this patch may solve the issue
http://pastebin.com/625633
------------------------------------------------------------------------
[2006-03-27 16:55:43] 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".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36875&edit=1
Thread (4 messages)