FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=19706&edit=1

ID: 19706
Comment by: niko2342
Reported By: spam@tylix.net
Summary: Incorrect file doesn't exist error on mapped network
drives
Status: Open
Type: Bug
Package: PHP_CodeSniffer
Operating System: Windows
Package Version: 1.4.2
PHP Version: 5.4.3
New Comment:

i can reproduce the issue. i figured out that the exception is thrown in
File.php (detectLineEndings) if the file is not readable. but, i have
read and write access to the file. if i add read access to all users
(chmod a+r *.php) all works fine.


Previous Comments:
------------------------------------------------------------------------

[2012-11-15 10:45:46] dprevite

Description:
------------
phpcs does not work when run against a network path that has
been mapped to a drive letter on Windows.

phpcs says the file doesn't exist, even when it does.



Test script:
---------------
C:\wamp\bin\php\php5.4.3>phpcs w:\test.php

(fails)

type w:\test.php

(displays contents of the test script)

Actual result:
--------------
C:\wamp\bin\php\php5.4.3>phpcs w:\test.php

FILE: W:\test.php
------------------------------------------------------------------------
--------

FOUND 0 ERROR(S) AND 2 WARNING(S) AFFECTING 1 LINE(S)
------------------------------------------------------------------------
--------

1 | WARNING | Error opening file; file no longer exists or you
do not have
access to read the file
1 | WARNING | No PHP code was found in this file and short
open tags are not
allowed by this install of PHP. This file may be using
short
open tags but PHP does not allow them.
------------------------------------------------------------------------
--------


Time: 0 seconds, Memory: 3.00Mb

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 10, '13 at 1:36p
activeJan 10, '13 at 1:36p
posts1
users1
websitepear.php.net

1 user in discussion

Niko2342: 1 post

People

Translate

site design / logo © 2022 Grokbase