Edit report at http://bugs.php.net/bug.php?id=40163&edit=1
ID: 40163
Comment by: hjan at libero dot it
Reported by: coyle at washpenn dot com
Summary: UNC Path not working
Status: Feedback
Type: Bug
Package: Directory function related
Operating System: Windows 2003
PHP Version: 5.3
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
PHP 5.3.3, windows 2008 R2, IIS 7.5.
This simple page:
<?php
$path = '\\\\server\\share\\';
$f = fopen($path . "somefile.txt", "w") or die ("can't open");
fwrite($f,"AAAAA");
print 'wroted-----';
fclose($f);
if(is_dir($path)) {
print 'directory' . $path . 'exists';
} else {
print 'directory' . $path . ' does not exists';
}
?>
return me PHP Warning: fopen(\\server\share\somefile.txt)
[function.fopen]: failed to open stream: Invalid argument in
C:\xxx\xxx\moodle\testdir.php on line 4
If I comment the write function I obtain :
directory\\server\share\ does not exists
Previous Comments:
------------------------------------------------------------------------
[2010-09-13 12:53:24] [email protected]
Try with 5.3.3, it works just fine here.
------------------------------------------------------------------------
[2010-09-13 12:02:44] as at 24h dot de
Still unresolved in PHP 5.3.1
------------------------------------------------------------------------
[2008-07-15 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-07-07 19:11:35] abaranenko at gmail dot com
It did not work with version 2.5.7
Still unresolved.
I've tried many different combinations.
The shared directory with this ALL permission.
PS.: My English is bad bad.
------------------------------------------------------------------------
[2008-07-07 15:11:43] [email protected]
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=40163
--
Edit this bug report at http://bugs.php.net/bug.php?id=40163&edit=1