Skip to content

glob:// wrapper doesn't cater to CWD for ZTS builds #17067

Closed

Description

@cmb69

Description

The following code:

<?php
var_dump(count(scandir('glob://ext/*')));
chdir("ext");
var_dump(count(scandir('glob://*')));

Resulted in this output:

int(70)
int(0)

But I expected this output instead:

int(70)
int(70)

Plain glob() doesn't have this issue.

PHP Version

PHP 8.3

Operating System

any

Activity

  1. self-assigned this
    on Dec 6, 2024
  2. added a commit that references this issue on Dec 6, 2024
    e8a60d8
  3. added 2 commits that reference this issue on Dec 18, 2024
    53b69ba
    a8ffabf
  4. added a commit that references this issue on Dec 18, 2024
    4dc0555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions