#25318 [Opn->Bgs]: File::_getFilePointer() checks writable permissions on dir instead of file
| From: | alan_k@php.net | Date: | Wed, 01 Sep 2004 14:21:37 +0000 |
| Subject: | #25318 [Opn->Bgs]: File::_getFilePointer() checks writable permissions on dir instead of file | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-33155@lists.php.net to get a copy of this message | ||
ID: 25318
Updated by: alan_k@php.net
Reported By: marshall at exclupen dot com
-Status: Open
+Status: Bogus
Bug Type: PEAR related
PHP Version: Irrelevant
New Comment:
can you move this on pear.php.net - none of the pear maintainers read
bugs.php.net and it more likely the package maintainer will be able to
help.
Previous Comments:
------------------------------------------------------------------------
[2003-08-29 20:57:32] marshall at exclupen dot com
Description:
------------
From File::_getFilePointer():
// Writeable?
} elseif ( (FILE_MODE_WRITE == $mode OR FILE_MODE_APPEND == $mode)
AND !file_exists($filename)
AND !is_writeable(dirname($filename))) {
return PEAR::raiseError('Could not create file: ' . $filename);
} elseif ( (FILE_MODE_WRITE == $mode OR FILE_MODE_APPEND == $mode)
AND !is_writeable(dirname($filename))) {
return PEAR::raiseError('File is not writeable: ' . $filename);
}
I believe that the second elseif should read:
AND !is_writeable($filename)) {
The file can have writable permissions even though the directory it's
in does not.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25318&edit=1