Edit report at http://bugs.php.net/bug.php?id=40163&edit=1

 ID:                 40163
 Updated by:         paj...@php.net
 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:

Not sure what C:\ETT\SITI\moodle\lib\setuplib.php is, but mkdir & co
work just fine here (various windows). Please provide a small script
with an explanation of your configuration (OS version where php runs, OS
where the UNC target is).


Previous Comments:
------------------------------------------------------------------------
[2010-11-26 16:33:54] hjan at libero dot it

still no luck with 5.3.4RC1

php[4452]

PHP Warning:  mkdir() [<a href='function.mkdir'>function.mkdir</a>]:
Invalid argument in C:\ETT\SITI\moodle\lib\setuplib.php on line 167

------------------------------------------------------------------------
[2010-11-26 12:33:34] paj...@php.net

Please try using 5.3.4RC1.

------------------------------------------------------------------------
[2010-11-26 08:53:06] hjan at libero dot it

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

------------------------------------------------------------------------
[2010-09-13 12:53:24] paj...@php.net

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

------------------------------------------------------------------------


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

Reply via email to