ID: 50542 Updated by: paj...@php.net Reported By: dd at headlineweb dot nl -Status: Open +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: win32 only - W2003 PHP Version: 5.3.1 Assigned To: pajoye New Comment:
@dd at headlineweb dot nl Not sure what's happening in your setup. Everything works now as expected in my test configurations, to read, test or write files or directories, using normal shares or DFS. However we use IIs7, I will have to verify if there is any open bugs in IIS6 in this area (impersonation). When you say, "it does not work", what is happening? Can you try to post a link to the outpout of processmonitor? Previous Comments: ------------------------------------------------------------------------ [2010-01-27 08:15:52] dd at headlineweb dot nl i do not have the problem wich blc at 3ds dot com has. I have a weird thing: when i install php 5.3.3 it works for the 1st time i run the script in the browser. after that it never works again. (also all other users not) when i remove php completely and reinstall it still does not work (also not the 1st time) when i wait 1 day, and install php again, it works again for the first time, and after F5 it wont never work again. when i try following commandline: C:\WINDOWS>c:\php53\php -f k:\intranet\doc.php i get following output: Array ( [0] => . [1] => .. [2] => Article Ranges [3] => Bezoek Verslagen [4] => Demo cd [5] => Headline Info [6] => ParcRanges 2008 [7] => Software Manuals ) and that output i get every time i run the commmand, also when i try as another user. ------------------------------------------------------------------------ [2010-01-27 00:46:06] paj...@php.net @blc at 3ds dot com I made some tested with shares mounted as drive letters and it works, is_* or reading/writing files contents. Can you describe exactly your configuration please? For the shares and for the php side as well as how you mounted the shares (GUI, junction, etc.). ------------------------------------------------------------------------ [2010-01-25 14:16:16] blc at 3ds dot com Maybe it can help: I've noticed that with your patch, when using drive path to access file, file_exists('W:/path/to/my/file.txt') now returned TRUE (=the file exists) even if fopen/file/file_get_contents were unable to read it and say "No such file or directory" ------------------------------------------------------------------------ [2010-01-25 13:28:43] paj...@php.net @blc at 3ds dot com "- it worked for me when used in UNC directory \\server\path - it did NOT when used in drive (letter:) mapped on the same path" Ok, thanks for testing! :) I have now to test the mapped version (mounted path or drive), that's a real mess on windows with shares and mounted paths/mapped drives. ------------------------------------------------------------------------ [2010-01-25 12:12:53] blc at 3ds dot com Hello, Thanks for the quick update. I have just installed it and re-run my previous test code: - it worked for me when used in UNC directory \\server\path - it did NOT when used in drive (letter:) mapped on the same path ------------------------------------------------------------------------ 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/50542 -- Edit this bug report at http://bugs.php.net/?id=50542&edit=1