Bug #12524 Updated: Still doesn't support UNC paths
| From: | dbeu@php.net | Date: | Tue, 21 Aug 2001 10:35:22 +0000 |
| Subject: | Bug #12524 Updated: Still doesn't support UNC paths | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63950@lists.php.net to get a copy of this message | ||
ID: 12524
Updated by: dbeu
Reported By: c.just@phoenixdigital.com
Old Status: Open
Status: Feedback
Bug Type: *Directory/Filesystem functions
Operating System: WinNT 4.0
PHP Version: 4.0.6
New Comment:
works fine for me.
remember to either escape the backslashes or to use frontslashes.
var_dump(is_dir("\\\\ntserver14\\shared\\cameron"));
var_dump(lstat("//ntserver14/shared/cameron/myfile"));
Previous Comments:
------------------------------------------------------------------------
[2001-08-20 21:28:07] c.just@phoenixdigital.com
The DIR function seems to be working well with that version.
The only functions that don't seem to be working now are the
is_dir
which returns the following errors
Warning: stat failed for \\downstairs\music. (errno=2 - No such file or directory)
Also the "stat" function doesn't return anything of use but it doesn't give an
error.
It looks good so far though.
Thanks
------------------------------------------------------------------------
[2001-08-18 21:52:13] sniper@php.net
Please try the PHP 4.0.7 RC1:
http://www.php.net/~zeev/php-4.0.7RC1-Win32.zip
--Jani
------------------------------------------------------------------------
[2001-08-02 09:53:48] sniper@php.net
User feedback: (next time, use the web interface..)
--------------
I have tested the snapshot you suggested and it still does not work.
--------------
------------------------------------------------------------------------
[2001-08-01 21:45:15] sniper@php.net
Some other fixes were made after 4.0.6 was released.
Please try the latest snapshot build from here:
http://www.zend.com/snapshots/
------------------------------------------------------------------------
[2001-08-01 21:28:37] c.just@phoenixdigital.com
The fix that was applied to PHP 4.0.6 still didn't fix the UNC problems which were broken when
PHP moved from PHP3 -> PHP4
$d = dir("//ntserver14/shared/cameron");
echo "Handle: ".$d->handle."<br>\n";
echo "Path: ".$d->path."<br>\n";
while($entry=$d->read()) {
echo $entry."<br>\n";
}
$d->close();
I ran the same code under php3.0.16 and it still works there.
This still fails to work with the lastest version of PHP.
It was stated as being fixed in 4.0.6 and I received a bug report closure for BUG 9234
http://www.php.net/bugs.php?id=9234
Any Ideas why it still doesn't work?
Am I doing something wrong from this end?
PS I have checked to see that all shares and filesystem are visible by the IIS4.0 webserver account.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12524&edit=1