Skip to content

Unable to load class on php-ds 2.0.0 (+ mac os?) #228

@alexander-a2

Description

@alexander-a2

Got this locally on MacOS (15.6.1) with php (8.5) and php-ds (2.0.0) installed with pecl:

Attempted to load class "Vector" from namespace "Ds"

On Ubuntu worked.
Tried php8.4, php8.2 - same error.
Downgraded to php-ds 1.8.0, manually downloaded 1.8.0 and compiled locally (without pecl) — works.

Not a autoload/cache issue, tested with:

if(extension_loaded('ds')){ $collection = new \Ds\Vector([1, 2, 3]); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions