php_stream_readdir() reads the next directory entry
from dirstream
and stores it into ent
.
If the function succeeds, the return value is ent
.
If the function fails, the return value is NULL.
See php_stream_dirent for more
details about the information returned for each directory entry.