From:             dd at headlineweb dot nl
Operating system: W2003
PHP version:      5.3.1
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  scandir() cannot open UNC paths since PHP 5.3.1

Description:
------------
scandir() cannot open UNC paths since PHP 5.3.1 (Running under IIS 6)

I've upgraded from PHP 5.2.11 tot 5.3.1 and then this function does not
work anymore.

this problem i have also with readdir, opendir, & glob.

PHP is configured on a virtual directory, i used the PHP 5.2.11 ISAPI
module and use now the PHP 5.3.1 CGI Module.

I tried following path's:
$dir = "\\\\hdlsrv\\Company\\Documentatie";
$dir = "\\hdlsrv\Company\Documentatie";
$dir = "//hdlsrv/Company/Documentatie";
$dir = "///hdlsrv/Company/Documentatie";

IIS is configured to use 'integrated windows authentication' and 'digest
authentication for windows domain servers'.

When a user opens the page, php-cgi.exe is running as the users logon
name.

The user has access to the share.

Reproduce code:
---------------
<?php
        $dir = "\\\\hdlsrv\\Company\\Documentatie";
        $files = scandir($dir);
        print_r($files);
?>

Expected result:
----------------
Array ( [0] => . [1] => .. [2] => Article Ranges [3] => Bezoek Verslagen
[4] => Demo cd [5] => Headline Info [6] => ParcRanges 2008 [7] => Software
Manuals ) 

Actual result:
--------------
Warning: scandir(\\hdlsrv\Company\Documentatie) [function.scandir]: failed
to open dir: No such file or directory in K:\Intranet\docs.php on line 3

Warning: scandir() [function.scandir]: (errno 2): No such file or
directory in K:\Intranet\docs.php on line 3
PHP Warning: scandir(\\hdlsrv\Company\Documentatie) [function.scandir]:
failed to open dir: No such file or directory in K:\Intranet\docs.php on
line 3 PHP Warning: scandir() [function.scandir]: (errno 2): No such file
or directory in K:\Intranet\docs.php on line 3 

-- 
Edit bug report at http://bugs.php.net/?id=50542&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50542&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50542&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50542&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50542&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50542&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50542&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50542&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50542&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50542&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50542&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50542&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50542&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50542&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50542&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50542&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50542&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50542&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50542&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50542&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50542&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50542&r=mysqlcfg

Reply via email to