#18332 [Opn]: is_readable/is_writable/is_executable support under safe mode

From: Date: Sun, 22 Sep 2002 21:37:38 +0000
Subject: #18332 [Opn]: is_readable/is_writable/is_executable support under safe mode
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-20053@lists.php.net to get a copy of this message
ID: 18332 Updated by: iliaa@php.net Reported By: ilia@prohost.org Status: Open Bug Type: Documentation problem Operating System: any PHP Version: 4.2.1 New Comment: In the current release of the manual is_readable/is_writable now mention the fact that they will not check safe_mode limitation. The is_executable however, still needs to be documented. Previous Comments: ------------------------------------------------------------------------ [2002-07-15 21:52:19] yohgaki@php.net I think stat function can be used to know actual permissions. is_* function supposed to return if current process can do something or not. IMO. We may need to change doc a bit. -> Documentation Problem ------------------------------------------------------------------------ [2002-07-13 18:31:32] ilia@prohost.org It would be very useful if is_readable/is_writable/is_executable series of functions would work with safe mode. Currently is_writable() will report a file that in reality cannot be accessed undersafe mode is writeable, which is clearly misleading. At least, could the manual be modified in such a way as to document that those functions will not work properly under safe_mode. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18332&edit=1

« previous php.bugs (#20053) next »