|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-05 23:44 UTC] rasmus@php.net
-Status: Open
+Status: Feedback
[2011-01-05 23:44 UTC] rasmus@php.net
[2011-01-06 23:21 UTC] pierregobin at free dot fr
-Status: Feedback
+Status: Open
[2011-01-06 23:21 UTC] pierregobin at free dot fr
[2011-01-06 23:27 UTC] rasmus@php.net
-Status: Open
+Status: Feedback
[2011-01-06 23:27 UTC] rasmus@php.net
[2011-01-07 18:10 UTC] pierregobin at free dot fr
-Status: Feedback
+Status: Closed
[2011-01-07 18:10 UTC] pierregobin at free dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 17:00:01 2025 UTC |
Description: ------------ When php script is run via apache is_writable always returns false : 'is_writable()' always returns 'false' whatever : - the permission write sets or not. - safe_mode on or off - the owner of the file being root:root or apache:apache on the other side, 'is_readable()' returns the correct value (either 'true' when the file is made readable or 'false' when the file is made unreadable). But, when the same script is run by the php command line (under root) - is_writable returns the correct value. Test script: --------------- <?php if (is_writable("toto")) { echo "is_writable<br>"; } else { echo "is not writable!!!<br>"; } ?> Expected result: ---------------- is_writable in case 'toto' is writable is not writable in case 'toto' is not writable