From: christian at freemails dot at
Operating system: Windows NT 5.2 build 3790
PHP version: 4.3.2
PHP Bug Type: Filesystem function related
Bug description: PHP has problems with accessing files and directorys in a windows
share
Description:
------------
well, I expierenced today this error message (see the output field in the
bugreport)
But I checked it by running cmd.exe (the Windows NT standard shell) as
webserver user and I can simply access any files. The share is writable
and on a FAT32 partition so no chmods or so on apply.
Well some PHP details:
It seems that I can use any filesystem function in PHP to fail to access
it. (tested with file)
file_exists return false.
I am using PHP as apache module as distributed on www.php.net
Apache 1.3.28 with PHP 4.3.2
Something that maybe apply: Today I upgraded my Apache to 1.3.28 from
1.3.27.
Reproduce code:
---------------
<?php
var_dump( file("\\\\somehost\\someshare\\somefile.txt") );
/* (line 8 is quoted in the bugreport) */
?>
Actual result:
--------------
Warning: file(\\pc4\hd2\do_chroot) [function.file.php]: failed to open
stream: Permission denied in c:\programme\apache
group\apache\htdocs\somescript.php on line 8
--
Edit bug report at http://bugs.php.net/?id=25469&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25469&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25469&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25469&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25469&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25469&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25469&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25469&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25469&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25469&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25469&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25469&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25469&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25469&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25469&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25469&r=gnused