Description
The following code:
<?php
var_dump(count(scandir('glob://ext/*')));
chdir("ext");
var_dump(count(scandir('glob://*')));
Resulted in this output:
But I expected this output instead:
Plain glob()
doesn't have this issue.
PHP Version
PHP 8.3
Operating System
any