Skip to content

Module loading #320

@thekid

Description

@thekid

Scope of Change

This RFC suggests adding the ability to load modules via class.pth.

Rationale

There is no counterpart for the command line option -m.

Functionality

# Local path and file references
src/main/php/
?vendor/autoload.php

# New: This is a module reference. Its path will be scanned for *.pth files
@../xp/inject/

Security considerations

n/a

Speed impact

Overhead (if not used) is one additional comparison: '@' === $path{0}; not measurable.

Dependencies

Implemented inside XP runners completely, compatible with all XP versions.

Related documents

RFC #318

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions