Re: Bug #13292 Updated: file_exists not working with UNC names

From: Date: Fri, 14 Dec 2001 20:37:29 +0000
Subject: Re: Bug #13292 Updated: file_exists not working with UNC names
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-73847@lists.php.net to get a copy of this message
For me it works since php-dev from july 4 2001 and also in 4.1.0. We had to
install the July 4 version on our production website to be able to access
UNC-style paths, now we could switch to 4.1.0.

We've made better experiences using "//server" instead of \\\\ because there
has been a bug in the slash/backslash translation: To get \\ you had to use
\\\\\\\\ - i don't know if this still exists, but this could be the reason
why Helmuts script doesn't work.

Christoph

<sander@php.net> schrieb im Newsbeitrag
news:20011214193809.31910.qmail@php2.chek.com...
> ID: 13292
> Updated by: sander
> Reported By: Helmut.Himmelstoss@t-online.de
> Old Status: Feedback
> Status: Open
> Bug Type: Filesystem function related
> Operating System: Windows NT/2000
> PHP Version: 4.0.6
> New Comment:
>
> Doesn't work with 4.1.0 nor with 4.2.0-dev.
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-12-14 14:29:39] yohgaki@php.net
>
> This is not a Scripting Engine Problem, but a FIle System function report.
>
> ------------------------------------------------------------------------
>
> [2001-12-14 14:28:20] yohgaki@php.net
>
> Any updates for this? This is a known issue for a long time.
>
> To reporter: I don't use windows. Could you try 4.1.0 and report the
result?
>
> ------------------------------------------------------------------------
>
> [2001-09-13 15:55:36] Helmut.Himmelstoss@t-online.de
>
> On a Windows 2000 box with PHP and IIS5.0, create a page the calls the
file_exists function on a
> known machine\share\file
>
> You will need to create a share on that machine or another.
>
> For example :
>
> if (file_exists("\\\\machine\\share\\test.txt") {
>   echo "Exists<BR>";
> } else {
>   echo "Does not Exist<BR>";
> }
>
> The file_exists function will always return false.
>
> The function works fine with drive letter associations, but not for UNC
notation on win32.
>
> You have closed this bug with id #6554.
>
> But this bug is not fixed in 4.0.6
>
> ------------------------------------------------------------------------
>
>
>
> Edit this bug report at http://bugs.php.net/?id=13292&edit=1
>




Thread (8 messages)

« previous php.dev (#73847) next »