Bug #5248 [Bgs->Opn]: Failure on read-only of customized folder
| From: | cellog@php.net | Date: | Mon, 05 Sep 2005 14:51:06 +0000 |
| Subject: | Bug #5248 [Bgs->Opn]: Failure on read-only of customized folder | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-6728@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=5248&edit=1
ID: 5248
Updated by: cellog@php.net
Reported By: Philippe dot Jausions at 11abacus dot com
-Status: Bogus
+Status: Open
Id: 5248
Type: Bug
-Package: PEAR
+Package: Documentation
Operating System: Windows
PHP Version: 5.1.0
New Comment:
changing to documentation and opening.
PEAR needs to note that the use of a custom folder may prevent PEAR
from properly installing.
Previous Comments:
------------------------------------------------------------------------
[2005-09-05 10:11:41] Philippe dot Jausions at 11abacus dot com
Actually, it's Windows that is incorrectly returning false.
Maybe this problem should be added in a "Known Issues" page for the
PEAR installer.
------------------------------------------------------------------------
[2005-09-04 19:32:09] cellog at php dot net
this bug is not in PEAR.
PEAR uses PHP's is_writable() function, which is incorrectly returning
false. There is no other reliable way to test for writability in PHP
that I know of. Help would be appreciated if I am wrong.
------------------------------------------------------------------------
[2005-08-30 19:11:22] Philippe dot Jausions at 11abacus dot com
Description:
------------
Background info:
I've designed some PEAR icons for my local PEAR folder, so a little
green pear appears on the folder in the windows explorer. (look under
the "Support" section, Pierre's uploaded them)
To know that the folder has a customized view, Windows sets the
"read-only" attribute to the folder. The "read-only" attribute is not
actually used to control write access. You can create files in a
"read-only" folder.
http://support.microsoft.com/default.aspx?scid=kb;en-us;326549
Now, having done so, the pear installer wouldn't install or upgrade any
packages that needed to have files placed directly under my customized
PEAR folder.
I've tracked down the problem to PEAR/Installer.php
commitFileTransaction()
On OS_WINDOWS the installer shouldn't check for the "read-only"
permission on the folder.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=5248&edit=1