php / php/php-src

Add "realpath" support for custom stream wrapper

Open
#12,118 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Category: Streams Feature
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

Currently, applications relying on realpath cannot be virtualized using VFS as realpath is supported for real file pathes only.

This is a feature request to allow realpath to be implemented by a custom stream wrapper.

Preferably explicitly (if a method is implemented) and implicitly (if a method is not implemented) assuming one VFS scheme represents one file system.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how realpath handles filesystem paths and how custom stream wrappers are dispatched. Define the explicit and implicit wrapper behavior described in the issue, then add coverage showing that realpath can be virtualized for a VFS scheme.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, php
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.