php_stream_closedir() closes a directory stream and releases resources associated with it. Returns 0 on success, but -1 on failure.