#7281·hhvm

Opening empty directory with RecursiveDirectoryIterator

Author: ggottwaldCreated Aug 18, 2016Updated Jul 27, 2025
Labelsphp5 incompatibilityneeds more infono isolated repro

HHVM Version

3.12.7 - PHP 5.6.20 is ok

Standalone code, or other way to reproduce the problem

https://gist.github.com/ggottwald/93c0b5412fd0371220f644c93c9aaa30

Expected result

realPath: false, dir: true

Actual result

realPath: current script directory, dir: false