Bug #68926 [NEW]: is_writable returns false but file_put_contents works
| From: | lukyer at gmail dot com | Date: | Tue, 27 Jan 2015 21:38:43 +0000 |
| Subject: | Bug #68926 [NEW]: is_writable returns false but file_put_contents works | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-190253@lists.php.net to get a copy of this message | ||
From: lukyer at gmail dot com
Operating system: Windows 8 64b Prof.
PHP version: 5.6Git-2015-01-27 (Git)
Package: *Directory/Filesystem functions
Bug Type: Bug
Bug description:is_writable returns false but file_put_contents works
Description:
------------
When samba drive is mapped in Windows, call to is_writable returns false
on folders and files although these are actually writable.
is_readable seems working ok.
Test script:
---------------
echo is_writeable("Z://fdvtest"); // returns 0
file_put_contents("Z://fdvtest/file", "content"); // works fine
--
Edit bug report at https://bugs.php.net/bug.php?id=68926&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68926&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68926&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68926&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68926&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68926&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68926&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68926&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68926&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68926&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68926&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68926&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68926&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68926&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68926&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68926&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68926&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68926&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68926&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68926&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68926&r=mysqlcfg