ID:               40163
 User updated by:  coyle at washpenn dot com
 Reported By:      coyle at washpenn dot com
 Status:           Open
 Bug Type:         Directory function related
 Operating System: Windows 2003
 PHP Version:      5.2.0
 New Comment:

Above:
    $path = '\\server\share\directory'; 
Should be:
    $path = '\\\\server\share\directory';

I am running out of things to try here.  When I print $path, I get a
valid UNC path with no spaces anywhere but I still get the error above.


Previous Comments:
------------------------------------------------------------------------

[2007-01-19 14:27:23] coyle at washpenn dot com

$path = "\\\\server\\share\\directory";
or
$path = '\\server\share\directory';

Doesn't matter which I try ... I've tried many different combinations
to produce the path in both 5.2.0 or 5.2.1 RC4-dev and none of them
work.  Everything was fine in php <= 5.1.6

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

[2007-01-19 14:09:15] [EMAIL PROTECTED]

Double slashes are needed only with double quotes, because  "\x" means
an escape character.

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

[2007-01-19 13:05:37] coyle at washpenn dot com

Better Example:

$path = '\\\\server\\share\\directory\\';

mkdir($path, 0770);

Warning: mkdir() [function.mkdir]: Invalid argument in <file> on line
<line>

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

[2007-01-19 08:08:04] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




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

[2007-01-19 01:00:36] coyle at washpenn dot com

Description:
------------
Using UNC path to save out a file in PHP 5.1.6 and everything works
great.  Upgraded to PHP 5.2.0 today and the UNC will not work anymore.

Reproduce code:
---------------
$path = '\\\\server\\share\\directory\\'

if(is_dir($path)) {
   print 'directory exists';
} else {
   print 'directory does not exists';
}

Expected result:
----------------
directory exists

Actual result:
--------------
directory does not exists


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


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

Reply via email to