#48852 [NEW]: php windows save file to remote share strange access denied
| From: | trutas dot ctx at gmail dot com | Date: | Wed, 08 Jul 2009 14:01:20 +0000 |
| Subject: | #48852 [NEW]: php windows save file to remote share strange access denied | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139477@lists.php.net to get a copy of this message | ||
From: trutas dot ctx at gmail dot com
Operating system: Windows Server 2003 x64 IIS6.0
PHP version: 5.3.0
PHP Bug Type: IIS related
Bug description: php windows save file to remote share strange access denied
Description:
------------
Access denied on a simple file_put_contents
- the strange thing is vbscript test file on the same folder works
- destination has everyone->modify/read/write.
localhost/test.asp
localhost/test.php
i think it is not relevant but test.php and test.asp are located on the
same \\share that we're trying to save the file to (but on a different
folder). Apparently it works if we map this share to a local drive and use
the local path (eg. E:\ );
file_get_contents works fine.
We are using Windows 2003 Server x64, IIS 6.0, PHP 5.3RC04 x64 via MS
FastCGI .
Reproduce code:
---------------
<?php
file_put_contents("\\\\share\\intraroot$\\folder\\file.txt", "...");
?>
Expected result:
----------------
file saved with content "..."
Actual result:
--------------
PHP Warning: file_put_contents(\\share\intraroot$\folder\file.txt):
failed to open stream: Permission denied in ...
--
Edit bug report at http://bugs.php.net/?id=48852&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48852&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48852&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48852&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48852&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48852&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48852&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48852&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48852&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48852&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48852&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48852&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48852&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48852&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48852&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48852&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48852&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48852&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48852&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48852&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48852&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48852&r=mysqlcfg