|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-23 14:49 UTC] gabe at mudbugmedia dot com
[2009-03-21 23:36 UTC] jani@php.net
[2009-03-23 13:47 UTC] gabe at mudbugmedia dot com
[2009-05-06 18:53 UTC] jani@php.net
[2009-05-14 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 14:00:01 2025 UTC |
Description: ------------ When using is_writable() on a read-only file mounted over NFS, it incorrectly returns true. In our environment, the NFS server is running MacOSX Server 10.5 mounted with the following fstab options: 10.10.10.10:/Volumes/Sack /sack nfs rw,rsize=32768,soft,intr,tcp,nosuid 0 1 Reproduce code: --------------- gabebug@proto /tmp $ ls -ld /sack/test dr-xr-xr-x 2 joshbug mudbug 68 Oct 6 14:45 /sack/test/ gabebug@proto /tmp $ ls -ld /tmp/test dr-xr-xr-x 2 joshbug mudbug 4096 Oct 6 14:44 /tmp/test/ gabebug@proto /tmp $ cat is_writable_test.php <?php var_dump( is_writable('/sack/test'), // /sack is the NFS mount is_writable('/tmp/test') ); gabebug@proto /tmp $ php -f is_writable_test.php Expected result: ---------------- bool(false) bool(false) Actual result: -------------- bool(true) bool(false)