You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
glob('/tmp/.*') must return /tmp/. and /tmp/.. on php-src. This compiler's pure-PHP glob (VmFsGlobPure) always skips . / .. before fnmatch(), even when the basename pattern begins with . (explicit dotfile request).
Fix:VmFsGlobPure only skips . / .. (and other dotfiles) when the basename pattern does not start with . — glob('/tmp/.*') now returns /tmp/. and /tmp/.. like php-src ext/standard/dir.c.
Verification:
```
php bin/vm.php test/repro/maintainer_gap_glob_dot_entries.php → ok
php vendor/bin/phpunit test/unit/VmFsGlobTest.php --filter testVmFsGlobDotPatternIncludesDotEntries → OK
php vendor/bin/phpunit test/compliance/ --filter glob_dot_entries → OK (VM+JIT)
```
Activity
PurHur commentedon Jul 8, 2026
claim: cursor-agent-lane-c — starting this run
Fix glob('/dir/.*') to include . and .. dot entries (#17456) (#17459)
PurHur commentedon Jul 8, 2026
Merged via #17459.
Fix:
VmFsGlobPureonly skips./..(and other dotfiles) when the basename pattern does not start with.—glob('/tmp/.*')now returns/tmp/.and/tmp/..like php-srcext/standard/dir.c.Verification:
```
php bin/vm.php test/repro/maintainer_gap_glob_dot_entries.php → ok
php vendor/bin/phpunit test/unit/VmFsGlobTest.php --filter testVmFsGlobDotPatternIncludesDotEntries → OK
php vendor/bin/phpunit test/compliance/ --filter glob_dot_entries → OK (VM+JIT)
```