Bug #64986 [Asn]: is_readable cannot read UNC path

From: Date: Mon, 10 Jun 2013 01:02:00 +0000
Subject: Bug #64986 [Asn]: is_readable cannot read UNC path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-179461@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64986&edit=1

 ID:                 64986
 User updated by:    mhhechanova at gmail dot com
 Reported by:        mhhechanova at gmail dot com
 Summary:            is_readable cannot read UNC path
 Status:             Assigned
 Type:               Bug
 Package:            *Directory/Filesystem functions
 Operating System:   Windows 64 Bit
 PHP Version:        5.3.26
 Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

@ab, here the result when issuing the command

icacls \\servername\sharename\file.txt ---> (I)(F)
icacls \\servername\sharename ---> (I)(OI)(CI)(F)


Previous Comments:
------------------------------------------------------------------------
[2013-06-07 10:23:46] ab@php.net

I can reproduce the behaviour only if i set the file itself non readable to the 
user i'm under or everyone. Whereby the fact running something as administrator 
reveals nothing - in case administrator or everyone is denied on that path, here 
you are. This is most likely a file permission issue on your share.

Please post the output of the following commando on the file/share you have an 
issue with

icacls \\servername\sharename\file.txt
icacls \\servername\sharename

------------------------------------------------------------------------
[2013-06-07 09:30:28] mhhechanova at gmail dot com

For reference please see the code below :

****Apache runs as Administrator Account

<?php
  $isReadable = is_readable("\\\\servername\\sharename\\file.txt"); //returns false
  $fileExists = file_exists("\\\\servername\\sharename\\file.txt"); //returns true
?>

------------------------------------------------------------------------
[2013-06-07 09:10:06] pajoye@php.net

@ab can you try to repro it pls?

------------------------------------------------------------------------
[2013-06-07 08:42:38] mhhechanova at gmail dot com

Yes its readable...Apache runs using Administrator account.

------------------------------------------------------------------------
[2013-06-07 08:39:49] pajoye@php.net

This is a permission option, you can check it either using the command line tool 
or via the property dialog > security.

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


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

    https://bugs.php.net/bug.php?id=64986


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


Thread (23 messages)

« previous php.bugs (#179461) next »