php / php/php-src

Can't understand mount point directories on Windows

オープン
#8,393 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Bug OS: Windows Status: Needs Triage
主要言語
C
スター
40.4k
フォーク
8.1k
平均マージ
2日 13時間
マージ済み PR(30日)
96

説明

Description

The following code:

<?php
var_dump(getcwd());
print_r(scandir("."));

Resulted in this output:

string(16) "R:\dreamflame.in"
PHP Warning:  scandir(.): The system cannot find the path specifi (code: 3) in Command line code on line 2

Warning: scandir(.): The system cannot find the path specifi (code: 3) in Command line code on line 2
PHP Warning:  scandir(.): Failed to open directory: No such file or directory in Command line code on line 2

Warning: scandir(.): Failed to open directory: No such file or directory in Command line code on line 2
PHP Warning:  scandir(): (errno 2): No such file or directory in Command line code on line 2

Warning: scandir(): (errno 2): No such file or directory in Command line code on line 2

But I expected directory listing instead

image

PHP Version

PHP 8.0.12

Operating System

Windows 11 build 22000

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、報告されたパス R:\dreamflame.in を使用し、Windows 11 上の PHP 8.0.12 で、提供された getcwd() と scandir(".") の例を再現します。カレントディレクトリとディレクトリ一覧の動作を通常のディレクトリと比較します。scandir(".") が警告なしに期待される内容を一覧表示すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
28/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。